This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14823] the copy constructor is called unnecessarily/incorrectly when passing an arg by reference to the base class
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Apr 2004 18:01:40 -0000
- Subject: [Bug c++/14823] the copy constructor is called unnecessarily/incorrectly when passing an arg by reference to the base class
- References: <20040402143013.14823.robert.schweikert@abaqus.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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_Ptr> 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