// { dg-do assemble } template struct S1 {}; template void f(T); template struct S2 { template void f >(T) {} // { dg-error "8:non-class, non-variable partial specialization" "" { target c++14 } } // { dg-error "8:non-type partial specialization" "" { target c++11_down } .-1 } }; template struct S3 { friend class S2; };