This is the mail archive of the gcc-patches@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]

Re: direct_notype_declarator and constructors


I don't remember the exact testcase that I put in the precedence specifier
to fix, but I believe it should stay.  It's simple to work around this to
force g++ to parse something as an expression; just wrap the whole
statement in parentheses.  By contrast, there's no way to force the
compiler to treat something as a declarator.

The real fix is to rewrite the parser so we can actually get this stuff
right.

Jason

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