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 #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


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