blob: 368068926a5b79a76aba73e5d97efa20d03fc394 [file] [log] [blame]
// PR c++/34267
// { dg-do compile }
struct A {};
__decltype (A); // { dg-error "must be an expression" }
template<int> struct B
{
__decltype (A); // { dg-error "must be an expression" }
__decltype (~A); // { dg-error "must be an expression" }
__decltype (B); // { dg-error "must be an expression" }
__decltype (~B); // { dg-error "must be an expression" }
};