[Bug c++/25110] "expected primary-expression before ')' token" error when compiling templated method of templated class
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Nov 27 00:04:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list