From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30972 invoked by alias); 26 Nov 2004 19:55:08 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 30948 invoked from network); 26 Nov 2004 19:55:04 -0000 Received: from unknown (HELO fep01-app.kolumbus.fi) (193.229.0.41) by sourceware.org with SMTP; 26 Nov 2004 19:55:04 -0000 Received: from [192.168.0.101] (really [84.230.64.80]) by fep01-app.kolumbus.fi with ESMTP id <20041126195504.IWNK6192.fep01-app.kolumbus.fi@[192.168.0.101]> for ; Fri, 26 Nov 2004 21:55:04 +0200 From: Mikael =?iso-8859-1?q?Kilpel=E4inen?= To: gcc@gcc.gnu.org Subject: Re: Passing temprary by reference requires copy constructor in 3.4? Date: Fri, 26 Nov 2004 20:10:00 -0000 User-Agent: KMail/1.6.1 References: <20041126191040.GD9325@ee.ethz.ch> <9C148074-3FDF-11D9-941D-000A95D692F4@physics.uc.edu> In-Reply-To: <9C148074-3FDF-11D9-941D-000A95D692F4@physics.uc.edu> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411262155.02799.mikael.kilpelainen@kolumbus.fi> X-SW-Source: 2004-11/txt/msg01039.txt.bz2 On Friday 26 November 2004 21:16, Andrew Pinski wrote: > > It does not require the copy constructor, just requires it be > accessible. > I would read the changes page for 3.4 which documents why this changed. > Mainly this is required by the C++ standard. Indeed, however seems that std commitee is removing the restriction. Hence I would like to see a flag to disable the error (if there is not one already and I am just not aware of it). I am refering to the DR 391. Mikael