1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// PR c++/104025 // { dg-do compile } // { dg-options "-Wmissing-template-keyword -fcompare-debug" } void bar (int); struct S { int i; }; template <class C> struct T { int m; C c; void foo () { bar (c.i < m); } }; template void T<S>::foo ();