Re: Syntax question

2005-11-16 Thread Joe Buck
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.

Re: Syntax question

2005-11-16 Thread Joel Sherrill <[EMAIL PROTECTED]>
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

Re: Syntax question

2005-11-16 Thread Andrew Pinski
> > > 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 lea

Syntax question

2005-11-16 Thread Joel Sherrill <[EMAIL PROTECTED]>
Is this valid C or C++? I am getting a syntax error when compiled as C++ but not C. int f() { int x, y, ; } -- Joel Sherrill, Ph.D. Director of Research & Development [EMAIL PROTECTED] On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 3580