This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/8158: Compiler rejects legal default parameter


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]