This is the mail archive of the gcc-bugs@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]

[Bug c/37231] GCC does not compile code with label statements that are followed by a declaration



------- Comment #1 from paolo dot carlini at oracle dot com  2008-08-25 10:43 -------
I think the improved error message in mainline makes clear this is invalid (the
EDG front-end agrees, by the way):

37231.c:6: error: a label can only be part of a statement and a declaration is
not a statement

And the "work-around" is indeed Ok.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37231


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