1 // { dg-do compile { target c++11 } } 2 template<int> struct A; 3 foo()4 void foo() 5 { 6 __decltype A<0>; // { dg-error "invalid declarator|expected" } 7 __decltype (A<0>); // { dg-error "must be an expression" } 8 } 9