/* PR c++/14622. The invalid explicit instantiation was not reported. */ /* { dg-do "compile" } */ template class A { static T a; }; template T A::a; struct B {}; template B A::a; /* { dg-error "does not match declared type" } */ template float A::a;