// { dg-do assemble } template struct S { template friend class S; void f(T); }; template struct S; void g() { S<> s; s.f(3); }