blob: a6202b551818f61c3793b9da5503fae94e793bf2 [file] [log] [blame]
//PR c++/28303
template<typename T> struct A
{
typedef struct typename T::X X; // { dg-error "expected identifier|two or more" }
};
template<typename T> A<T>::X::X() {} // { dg-error "expected|not a type|forbids declaration|invalid use of" }