This is the mail archive of the gcc@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: possible parser bug?


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



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