This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39126] Missing "move" constructor call (C++0x rvalue references)
- From: "gbrammer at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 May 2009 19:17:51 -0000
- Subject: [Bug c++/39126] Missing "move" constructor call (C++0x rvalue references)
- References: <bug-39126-16279@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from gbrammer at gmx dot de 2009-05-08 19:17 -------
Well, I am sure that it shouldn't be created, but rereading the spec
(http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html 12.8) I
noticed that this bug is not in g++, but by design.
I had hoped that rvalue references were a replacement for the ability to pass
temporaries to non-const references present in g++ up to version 4.1 and
Microsoft's C++ compilers, but apparently one has to be very very careful using
them. Well, at least I now only have to worry about the code, not the compiler.
--
gbrammer at gmx dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39126