------- Comment #6 from pinskia at gcc dot gnu dot org 2005-10-03 17:06 ------- For what is worth Comeau rejects the code:
"ComeauTest.c", line 8: error: name following "template" must be a member template t.template f< int >(); ^ "ComeauTest.c", line 8: error: too few arguments for class template "f" t.template f< int >(); ^ "ComeauTest.c", line 8: warning: ambiguous class member reference -- function template "F::f" (declared at line 14) used in preference to class template "f" (declared at line 2) t.template f< int >(); ^ detected during instantiation of "void call_f(T &) [with T=F]" Removing the template class above does "fix" it too there. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24161