// { dg-do compile { target c++11 } } template struct B { // { dg-error "declaration of" } void f3(); void f4(); }; template void B::f3() { } // OK template void B::f4() { } // { dg-error "invalid" }