[tree-ssa] labels after returns

law@redhat.com law@redhat.com
Mon Apr 12 17:01:00 GMT 2004


In message <1081787929.3970.74.camel@localhost.localdomain>, Diego Novillo writ
es:
 >On Mon, 2004-04-12 at 12:35, law@redhat.com wrote:
 >
 >>  >Regardless.  Are they not invalid? 
 >> It is valid code.
 >> 
 >OK.  I must've confused it with some other problem then.  Something
 >about labels not allowed right before the closing brace.  But I don't
 >pay enough attention to these things.
A label without a semi-colon followed by a close-brace is not valid, but
was accepted as a GCC extension for a long time.  _That_ problem has shown
up in many packages.

If you look at Andrew's testcase, there is a semi-colon after the label, so
it's valid.
jeff



More information about the Gcc mailing list