//PR c++/28638 template struct A; // { dg-error "not a valid type" } template class> struct B {}; B b; // { dg-error "template|invalid type" }