This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58495] member function template all of class template yield 'expected primary-expression'
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 21 Sep 2013 17:27:49 +0000
- Subject: [Bug c++/58495] member function template all of class template yield 'expected primary-expression'
- Auto-submitted: auto-generated
- References: <bug-58495-4 at http dot gcc dot gnu dot org/bugzilla/>
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