[Bug c++/18448] g++ attempts to use copy constructor instead of operator = on instantiated object
--- Additional Comments From megath at iof dot ru 2004-11-12 10:43 --- Created an attachment (id=7527) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7527action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18448
[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 12:39 --- Invalid, did you read the release notes? -- What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18448
[Bug c++/18448] g++ attempts to use copy constructor instead of operator = on instantiated object
--- Additional Comments From megath at iof dot ru 2004-11-12 13:10 --- about iCopy constructor access check while initializing a reference./i ? yes. sorry. *p = A() constructs copy of object now? what for ? doesnt it degrades perfomance? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18448
[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 iCopy 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
[Bug c++/18448] g++ attempts to use copy constructor instead of operator = on instantiated object
--- Additional Comments From megath at iof dot ru 2004-11-12 13:48 --- I just says it has to be accessable so, if gcc dont use copy ctor - what for it complains ?! and why is it error btw ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18448
[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:54 --- (In reply to comment #5) I just says it has to be accessable so, if gcc dont use copy ctor - what for it complains ?! Because this is the requirement of the C++ standard. and why is it error btw ? because we could use the ctor if we wantted to in this case but we don't so the requirement of the C++ standard says it has to be accessable. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18448
[Bug c++/18448] g++ attempts to use copy constructor instead of operator = on instantiated object
--- Additional Comments From megath at iof dot ru 2004-11-12 13:57 --- thank you. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18448