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++/18448] g++ attempts to use copy constructor instead of operator = on instantiated object


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-12 13:41 -------
(In reply to comment #3)
> about 
> <i>Copy constructor access check while initializing a reference.</i> 
> ? yes. sorry.
> *p = A() constructs copy of object now? what for ? 
No we don't contruct a copy of the object, did you really read it.  I just says it has to be accessable, it 
will not be used.
> doesnt it degrades perfomance?
Only slightly compile time and that is it.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18448


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