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