1 //PR c++/27962 2 3 template<int> struct A 4 { 5 template<typename> void foo(); 6 }; 7 foo()8 template<> template<struct T> void A<0>::foo() {} // { dg-error "not a valid type" } 9 10