From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31764 invoked by alias); 2 Apr 2004 18:01:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31716 invoked by uid 48); 2 Apr 2004 18:01:40 -0000 Date: Fri, 02 Apr 2004 18:01:00 -0000 Message-ID: <20040402180140.31715.qmail@sources.redhat.com> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040402143013.14823.robert.schweikert@abaqus.com> References: <20040402143013.14823.robert.schweikert@abaqus.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/14823] the copy constructor is called unnecessarily/incorrectly when passing an arg by reference to the base class X-Bugzilla-Reason: CC X-SW-Source: 2004-04/txt/msg00203.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-02 18:01 ------- No it is not complaining on that, it is complaining on: typedef void* omu_Ptr; typedef omu_Varray omu_VarrayPtr; .... : rgnF_GeomSet (fl, vrec, erec, frec, crec, omu_VarrayPtr(), <--- rvalue (omu_VarrayPtr () ), so you need to access the copy constror name, how_to_split, how_to_merge), .... (before, the base class class constructor): rgnF_GeomSet ( ftr_FeatureList*, const omu_VarrayPtr& vrec, const omu_VarrayPtr& erec, const omu_VarrayPtr& frec, const omu_VarrayPtr& crec, const omu_VarrayPtr& rrec, const cow_String& name, cax_MigrationType how_to_split = cax_SPLIT_COPY, cax_MigrationType how_to_merge = cax_MERGE_EXPAND); -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14823