This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37231] GCC does not compile code with label statements that are followed by a declaration
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2008 10:43:08 -0000
- Subject: [Bug c/37231] GCC does not compile code with label statements that are followed by a declaration
- References: <bug-37231-16629@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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