From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2427 invoked by alias); 18 Apr 2002 07:58:42 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 2367 invoked by uid 61); 18 Apr 2002 07:58:38 -0000 Date: Thu, 18 Apr 2002 00:58:00 -0000 Message-ID: <20020418075838.2366.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, swhite@discreet.com From: nathan@gcc.gnu.org Reply-To: nathan@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, swhite@discreet.com, gcc-gnats@gcc.gnu.org Subject: Re: c++/6340: copy constructor vs non-default constructor X-SW-Source: 2002-04/txt/msg00914.txt.bz2 List-Id: Synopsis: copy constructor vs non-default constructor State-Changed-From-To: open->closed State-Changed-By: nathan State-Changed-When: Thu Apr 18 00:58:37 2002 State-Changed-Why: not a bug. Thing2 b = a; is formally Thing2 b(Thing2 (a)); i.e. convert a to Thing2 then copy construct b with that. [8.5]/14 class copy initialization case. But we are allowed to elide that temporary Thing2. See [12.8]/15 of the std. The copy ctor must exist and be accessible though. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6340