// PR c++/27582 // { dg-do compile } struct A { template void foo(); }; template > struct B {}; B b; // { dg-error "type/value mismatch|expected a constant|invalid type" }