// { dg-do assemble } template struct S { template void f(); }; template template <> // { dg-error "enclosing class templates|invalid explicit specialization" } void S::f () { }