From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13261 invoked by alias); 19 Apr 2004 13:15:52 -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 13254 invoked from network); 19 Apr 2004 13:15:51 -0000 Received: from unknown (HELO smtp-relay-8.adobe.com) (192.150.22.8) by sources.redhat.com with SMTP; 19 Apr 2004 13:15:51 -0000 Received: from inner-relay-1.corp.adobe.com (inner-relay-1 [153.32.1.51]) by smtp-relay-8.adobe.com (8.12.10/8.12.10) with ESMTP id i3JDFR6P013929; Mon, 19 Apr 2004 06:15:28 -0700 (PDT) Received: from iplan-mn (iplan-mn.corp.adobe.com [130.248.25.5]) by inner-relay-1.corp.adobe.com (8.12.9/8.12.9) with ESMTP id i3JDFN3k029344; Mon, 19 Apr 2004 06:15:23 -0700 (PDT) Received: from mn-eljayet.adobe.com (b-25-196.corp.adobe.com [130.248.25.196]) by iplan-mn.corp.adobe.com (iPlanet Messaging Server 5.2 Patch 1 (built Aug 19 2002)) with ESMTP id <0HWF00FX365MNO@iplan-mn.corp.adobe.com>; Mon, 19 Apr 2004 08:15:22 -0500 (CDT) Date: Mon, 19 Apr 2004 13:15:00 -0000 From: Eljay Love-Jensen Subject: Re: Anonymous union members problem In-reply-to: <1082380113.10142.9.camel@c-l-175> X-Sender: eljay@iplan-mn.corp.adobe.com To: Mathieu Fluhr , gcc-help@gcc.gnu.org Message-id: <6.0.3.0.2.20040419081345.01d1b498@iplan-mn.corp.adobe.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <1082380113.10142.9.camel@c-l-175> X-SW-Source: 2004-04/txt/msg00242.txt.bz2 Hi Mathieu, >Is this invalid C++ code ? Yes, this is invalid C++ code. >If yes is there a way to make it valid and compilable under Linux ? Take the typedef out of the anonymous struct. --or-- Name the anonymous struct so it is no longer anonymous. I favor the second. HTH, --Eljay