[Bug c/37231] GCC does not compile code with label statements that are followed by a declaration
paolo dot carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Mon Aug 25 10:44:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list