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: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2009 09:25:32 -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 #6 from manu at gcc dot gnu dot org 2009-07-09 09:25 -------
Is this mandated to be an error by the standard? Perhaps GCC could just pedwarn
and add the ';' itself, and compile just fine.
Otherwise, I might add a hint:
note: either add ';' or open a block after the label.
Thoughts?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37231