1 // PR c++/34485 2 3 struct A 4 { 5 template<T::X> struct X; // { dg-error "'T' has not been declared" } 6 }; 7