//PR c++/27962 template struct A { template void foo(); }; template<> template void A<0>::foo() {} // { dg-error "not a valid type" }