This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: possible parser bug?
- To: "Wegher, Jeff" <JWegher at neonsoft dot com>
- Subject: Re: possible parser bug?
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 07 Nov 1998 05:34:11 -200
- Cc: "'Michael Iber'" <michael dot iber at siemens dot at>, egcs at cygnus dot com
- References: <B1771D049899D011926500A024CA914F01092543@mercury.neonsoft.com>
On Nov 6, 1998, "Wegher, Jeff" <JWegher@neonsoft.com> wrote:
> Your line:
> B(GetA()->f());
> looks like a function declaration rather than a constructor, and it's
> invalid syntax for a function declaration.
I don't think this is one of the cases of ambiguity. This can't
possibly be a declaration, so it must be interpreted as an
expression-statement.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.anu.edu.au}
Universidade Estadual de Campinas, SP, Brasil