This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8158: Compiler rejects legal default parameter
- From: nathan at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, m dot doppler at icoserve dot com, nobody at gcc dot gnu dot org, p dot klotz at icoserve dot com
- Date: 7 Oct 2002 16:42:34 -0000
- Subject: Re: c++/8158: Compiler rejects legal default parameter
- Reply-to: nathan at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, m dot doppler at icoserve dot com, nobody at gcc dot gnu dot org, p dot klotz at icoserve dot com, gcc-gnats at gcc dot gnu dot org
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