[Bug c/37231] GCC does not compile code with label statements that are followed by a declaration
manu at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jul 9 09:25:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list