From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18416 invoked by alias); 19 Feb 2008 15:23:16 -0000 Received: (qmail 18403 invoked by uid 22791); 19 Feb 2008 15:23:15 -0000 X-Spam-Check-By: sourceware.org Received: from exprod6og103.obsmtp.com (HELO exprod6og103.obsmtp.com) (64.18.1.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 19 Feb 2008 15:22:52 +0000 Received: from source ([192.150.20.142]) by exprod6ob103.postini.com ([64.18.5.12]) with SMTP; Tue, 19 Feb 2008 07:22:49 PST Received: from inner-relay-3.eur.adobe.com (inner-relay-3b [10.128.4.236]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id m1JFMlGb008647; Tue, 19 Feb 2008 07:22:47 -0800 (PST) Received: from fe1.corp.adobe.com (fe1.corp.adobe.com [10.8.192.70]) by inner-relay-3.eur.adobe.com (8.12.10/8.12.9) with ESMTP id m1JFLfG7018236; Tue, 19 Feb 2008 07:22:47 -0800 (PST) Received: from namailgen.corp.adobe.com ([10.8.192.91]) by fe1.corp.adobe.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 19 Feb 2008 07:22:46 -0800 Received: from 10.32.16.88 ([10.32.16.88]) by namailgen.corp.adobe.com ([10.8.192.91]) via Exchange Front-End Server namailhost.corp.adobe.com ([10.8.192.70]) with Microsoft Exchange Server HTTP-DAV ; Tue, 19 Feb 2008 15:22:45 +0000 User-Agent: Microsoft-Entourage/12.0.0.071130 Date: Tue, 19 Feb 2008 15:23:00 -0000 Subject: Re: assignment operators for union member classes From: John Love-Jensen To: Mike Welsen , GCC-help Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg00232.txt.bz2 Hi Mike, > Does anyone know why asignment operators are not allowed for union class > members ? Yes, I know why. Because the assignment operator won't be executed. (Besides that, a non-POD / non-aggregate object violates the constraints of what can be in a union.) HTH, --Eljay