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]
Other format: [Raw text]

Re: Syntax question


On Wed, Nov 16, 2005 at 04:38:29PM -0500, Andrew Pinski wrote:
> > 
> > 
> > Is this valid C or C++?  I am getting a syntax error when
> > compiled as C++ but not C.
> > 
> > int f()
> > {
> > int x, y, ;
> > }
> 
> I am getting a syntax error with the C front-end but not with the
> C++ front-end.  This is definitely a bug as this is invalid C++ also.
> This is a regression from at least 3.4.0 as 3.3.3 works but 3.4.0 does
> not reject it.

That would mean that it was introduced with the new recursive-descent
parser, which first appeared in 3.4.


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