This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: direct_notype_declarator and constructors
- To: Clinton Popetz <cpopetz at cygnus dot com>
- Subject: Re: direct_notype_declarator and constructors
- From: Jason Merrill <jason at cygnus dot com>
- Date: 01 Mar 2000 12:25:57 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20000225152356.A3052@cpopetz.com> <u99008lr03.fsf@yorick.cygnus.com> <20000228085908.A24522@cpopetz.com>
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