1 // PR c++/34776 2 3 template<typename T> struct A 4 { 5 T::X<0> x; // { dg-error "non-template|T::template|base type" } 6 }; 7 8 A<int*> a; 9