c++/8158: Compiler rejects legal default parameter
nathan@gcc.gnu.org
nathan@gcc.gnu.org
Mon Oct 7 09:42:00 GMT 2002
Synopsis: Compiler rejects legal default parameter
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Mon Oct 7 09:42:34 2002
State-Changed-Why:
not a bug. There is a defect report about this. The
c++ std does not specify exactly when default args
of member functions are parsed.
Your default arg contains an unparenthesized comma.
It is *very* hard to determine whether a '<' marks
the start of a template parm list at that point. The
defect report resolves this by saying the default
arg consists of the tokens up to the next unparenthesized,
unbracketed comma or close paren.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8158
More information about the Gcc-prs
mailing list