From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1916 invoked by alias); 11 Dec 2002 23:46:04 -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 1898 invoked by uid 71); 11 Dec 2002 23:46:03 -0000 Date: Wed, 11 Dec 2002 15:46:00 -0000 Message-ID: <20021211234603.1897.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Richard Henderson Subject: Re: c/8420: volatile after the type specifier for an unnamed structure is rejected Reply-To: Richard Henderson X-SW-Source: 2002-12/txt/msg00676.txt.bz2 List-Id: The following reply was made to PR c/8420; it has been noted by GNATS. From: Richard Henderson To: ehrhardt@mathematik.uni-ulm.de Cc: gcc-gnats@gcc.gnu.org Subject: Re: c/8420: volatile after the type specifier for an unnamed structure is rejected Date: Wed, 11 Dec 2002 15:40:19 -0800 On Fri, Nov 01, 2002 at 10:14:09AM -0000, ehrhardt@mathematik.uni-ulm.de wrote: > struct c { > struct { int x; } volatile; > }; /* ERROR */ > > theseus$ gcc -Wall -c t.c > t.c:10: unnamed fields of type other than struct or union are not allowed [...] > Given the other two examples (struct a and struct b) which are accepted > this code should probably be legal. I don't agree. I think this is very confusing syntax. > Even if it is illegal the error message is wrong. Granted. r~