// { dg-do link } // { dg-options "-frepo" } // Build then link: // Simplified from testcase by Erez Louidor Lior template class foo{ public: void g(); void h(); }; template void foo::g() { h(); } template void foo::h() { } int main() { foo f; f.g(); }