1 template <typename T> 2 struct X<T*> { // { dg-error "not a class template" } 3 typedef int Y; 4 }; 5 6 extern struct Z<int> s; // { dg-error "not a class template" } 7