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