This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]