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

Well done.  You have more patience than me, clearly.  :-)

Perhaps we should change this...

Andrew.


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