This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28761] Returning object ignores copy constructor
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2006 12:18:48 -0000
- Subject: [Bug c++/28761] Returning object ignores copy constructor
- References: <bug-28761-13110@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pluto at agmk dot net 2006-08-17 12:18 -------
this is not a bug. the c++ standard allows RVO optimization.
see $12.8/15 for more details.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28761