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: Something weird with cp/decl.c switch statement


"Andrew Pinski" <pinskia@gmail.com> writes:

> 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.

And Simon already sent in a tested patch for a couple of days ago:

http://gcc.gnu.org/ml/gcc-patches/2007-06/msg00199.html

Ian


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