// PR c++/47705 template class Something { }; extern char const xyz; class SomethingElse:public Something { }; // { dg-error "xyz. is a variable" }