This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25110] "expected primary-expression before ')' token" error when compiling templated method of templated class
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Nov 2005 00:04:38 -0000
- Subject: [Bug c++/25110] "expected primary-expression before ')' token" error when compiling templated method of templated class
- References: <bug-25110-11372@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-11-27 00:04 -------
This is actually expected, you want:
f.template Func<0>();
Since f is dependent, we are not expecting Func to be a template so it parses
as a non template and then errors out as a<0 > () is invalid for anything
except a template.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25110