[Bug c++/58495] member function template all of class template yield 'expected primary-expression'

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Sep 21 17:27:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58495

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
You need to say:

   xFromB.template f<int>();

See http://womble.decadent.org.uk/c++/template-faq.html#disambiguation



More information about the Gcc-bugs mailing list