// { dg-do compile } // Contributed by Giovanni Bajo // PR c++/14497: Reject specialization without template headers template struct A { template void B () ; }; void A<0>::B<0>() { // { dg-error "specializing member 'A<0>::B<0>' requires 'template<>' syntax" } }