From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27119 invoked by alias); 23 Jun 2011 16:06:00 -0000 Received: (qmail 27110 invoked by uid 22791); 23 Jun 2011 16:05:59 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Jun 2011 16:05:47 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p5NG5kPl023602 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 23 Jun 2011 12:05:46 -0400 Received: from [127.0.0.1] (ovpn-113-125.phx2.redhat.com [10.3.113.125]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p5NG5jcM009259; Thu, 23 Jun 2011 12:05:45 -0400 Message-ID: <4E036459.2090903@redhat.com> Date: Thu, 23 Jun 2011 16:06:00 -0000 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Paolo Carlini CC: "gcc-patches@gcc.gnu.org" Subject: Re: [C++ Patch] PR 44625 References: <4E031E9C.8090502@oracle.com> <4E0352EF.6000007@redhat.com> <4E035C0C.2070407@oracle.com> <4E035FF6.4050209@redhat.com> <4E03613B.2020302@oracle.com> <4E036350.7010700@redhat.com> In-Reply-To: <4E036350.7010700@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg01780.txt.bz2 Actually, 9.5 says A union of the form union { member-specification } ; is called an anonymous union; it defines an unnamed object of unnamed type. The member-specification of an anonymous union shall only define non-static data members. [ Note: Nested types and functions cannot be declared within an anonymous union. — end note ] So we should be able to just reject nested anonymous aggregates and not worry about how to make them work. Jason