This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14823] the copy constructor is called unnecessarily/incorrectly when passing an arg by reference to the base class


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]