c/8293: C99 declaration syntax not accepted after case label
jsm28@gcc.gnu.org
jsm28@gcc.gnu.org
Sun Oct 20 13:04:00 GMT 2002
Synopsis: C99 declaration syntax not accepted after case label
State-Changed-From-To: open->closed
State-Changed-By: jsm28
State-Changed-When: Sun Oct 20 13:04:57 2002
State-Changed-Why:
C99 does not allow it. Statements and declarations may
be mixed, but declarations are not a type of statement,
and labels may only be applied to statements. See
block-item, 6.8.2#1, and labeled-statement, 6.8.1.
As noted in a comment in c-parse.in, this is not
implemented as a GCC extension because there would be
a conflict between attributes on the label and on the
declaration.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8293
More information about the Gcc-bugs
mailing list