template struct X { // { dg-error "not a class template" } typedef int Y; }; extern struct Z s; // { dg-error "not a class template" }