This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67621] Syntax error for template function of template class
- 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: Fri, 18 Sep 2015 09:52:13 +0000
- Subject: [Bug c++/67621] Syntax error for template function of template class
- Auto-submitted: auto-generated
- References: <bug-67621-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67621
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to physik3 from comment #0)
> foo.foo<int>(); // this line gives a compiler error
This needs to be:
foo.template foo<int>();
See https://womble.decadent.org.uk/c++/template-faq.html#disambiguation