From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8166 invoked by alias); 5 Jul 2005 14:10:41 -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 8144 invoked by uid 22791); 5 Jul 2005 14:10:37 -0000 Received: from exprod6og4.obsmtp.com (HELO psmtp.com) (64.18.1.124) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Tue, 05 Jul 2005 14:10:37 +0000 Received: from source ([192.150.20.142]) by exprod6ob4.obsmtp.com ([64.18.5.12]) with SMTP; Tue, 05 Jul 2005 07:10:34 PDT 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 j65EGeTK005244 for ; Tue, 5 Jul 2005 07:16:40 -0700 (PDT) Received: from iplan-mn (iplan-mn.corp.adobe.com [10.32.16.20]) by inner-relay-3.eur.adobe.com (8.12.10/8.12.9) with ESMTP id j65EAViw012702 for ; Tue, 5 Jul 2005 07:10:32 -0700 (PDT) Received: from iplan-mn (localhost [127.0.0.1]) by iplan-mn.corp.adobe.com (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTP id <0IJ5008ESRDJY5@iplan-mn.corp.adobe.com> for gcc-help@gcc.gnu.org; Tue, 05 Jul 2005 09:10:31 -0500 (CDT) Received: from mn-eljay-a51m.adobe.com (mn-dhcp-17-28.corp.adobe.com [10.32.17.28]) by iplan-mn.corp.adobe.com (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTP id <0IJ5008DURDJI2@iplan-mn.corp.adobe.com> for gcc-help@gcc.gnu.org; Tue, 05 Jul 2005 09:10:31 -0500 (CDT) Date: Tue, 05 Jul 2005 14:10:00 -0000 From: Eljay Love-Jensen Subject: Re: copy ctor not called In-reply-to: <200507031547.33672.Jeroen.Wijnhout@kdemail.net> To: Jeroen Wijnhout , gcc-help@gcc.gnu.org Message-id: <6.2.1.2.2.20050705090751.0243dd68@iplan-mn.corp.adobe.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <200507022024.10598.Jeroen.Wijnhout@kdemail.net> <5d0f609905070305263875cb57@mail.gmail.com> <200507031547.33672.Jeroen.Wijnhout@kdemail.net> X-SW-Source: 2005-07/txt/msg00031.txt.bz2 Hi Jeroen, >To me this says, that I -fno-elide-constructors should be the default behavior. Which it isn't (at least for gcc 3.3.4). Due to the design and evolution of C++, your expectation that "-fno-elide-constructors should be the default behavior" is not the case. I can understand where a person would expect that to be the situation. However, C++ standard has the elide "optimization" be the default behavior for proper C++, and the -fno-elide-constructors is a non-compliant pessimization. Moreso, you've touched up the (surprising?) requirement for the copy constructor to be public. These C++ anachronisms are due in large part to the design and evolution of C++. They are legacy warts. Sincerely, --Eljay