[Bug c++/14823] the copy constructor is called unnecessarily/incorrectly when passing an arg by reference to the base class
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Apr 2 18:01:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list