// PR c++/47974 typedef double T; struct A { template void foo(); // { dg-error "type" } }; template > struct B {}; // { dg-error "type|declared" } B<> b; // { dg-error "type|declaration" } // { dg-prune-output "could not convert" }