// { dg-additional-options -fmodules-ts } module foo; template class TPL; // (instantiated in interface) template class TPL; void m () { // friend definitions instantiated on-demand here foo (1, 0); foo (1.0f, 0); }