From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28254 invoked by alias); 20 Oct 2002 20:04:57 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 28234 invoked by uid 61); 20 Oct 2002 20:04:57 -0000 Date: Sun, 20 Oct 2002 13:04:00 -0000 Message-ID: <20021020200457.28233.qmail@sources.redhat.com> To: drepper@redhat.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, jsm28@cam.ac.uk, nobody@gcc.gnu.org From: jsm28@gcc.gnu.org Reply-To: jsm28@gcc.gnu.org, drepper@redhat.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, jsm28@cam.ac.uk, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c/8293: C99 declaration syntax not accepted after case label X-SW-Source: 2002-10/txt/msg00758.txt.bz2 List-Id: 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