Something weird with cp/decl.c switch statement
Aaron Gray
angray@beeb.net
Tue Jun 5 16:36:00 GMT 2007
> On 6/5/07, Aaron Gray <angray@beeb.net> wrote:
>> There is something weird with the switch statement in cp/decl.c:7105.
>> I dont think it will effect the decl.c's logic, but what does it say
>> about
>> the GCC's C parser, is this legal C ?
>
> Yes this is legal C :).
> Just for everyone else the code looks like:
> switch( a)
> {
> case b:
> {
> ...
> break
> case c:
> .....
> }
> }
>
> case are just special kind of labels.
MS Visual Studio does not parse it. Are you sure its legal C ?
Aaron
More information about the Gcc
mailing list