This is the mail archive of the gcc-prs@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]

Re: c/8293: C99 declaration syntax not accepted after case label


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


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