From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28068 invoked by alias); 28 Feb 2003 07:57:59 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 28061 invoked from network); 28 Feb 2003 07:57:59 -0000 Received: from unknown (HELO ealliance.ro) (213.233.121.14) by 172.16.49.205 with SMTP; 28 Feb 2003 07:57:59 -0000 Received: from dark (unknown [213.157.162.180]) by ealliance.ro (eAlliance's MyHost eMailer) with ESMTP id E574D2B832A; Fri, 28 Feb 2003 09:55:04 +0200 (EET) Content-Type: text/plain; charset="iso-8859-1" From: Mihnea Balta To: Dan Kegel Subject: Re: anonymous structs in unions Date: Fri, 28 Feb 2003 07:57:00 -0000 Cc: gcc-help@gcc.gnu.org References: <200302271436.55061.dark_lkml@mymail.ro> <3E5E47BA.3090100@kegel.com> In-Reply-To: <3E5E47BA.3090100@kegel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302280956.16831.dark_lkml@mymail.ro> X-SW-Source: 2003-02/txt/msg00293.txt.bz2 Hmm, I tried with 2.95.3 and it complained. I take it gcc 3.2 understands t= his=20 kind of constructs, I might consider switching to it (and recompiling tons = of=20 software that uses the old ABI, but that's it, it had to happen someday :) ) Thank you for clearing this up for me. On Thursday 27 February 2003 19:15, Dan Kegel wrote: > Mihnea Balta wrote: > > I've found out quite a while ago that gcc and g++ don't like constructs > > like: > > > > union something{ > > struct{ > > int a, int b; > > }; > > struct{ > > float c, d; > > }; > > } a; > > > > a.c =3D 12.f; > > If you fix the typos (, -> ;), that compiles nicely with gcc3.2. > - Dan