[Bug c++/39126] Missing "move" constructor call (C++0x rvalue references)
gbrammer at gmx dot de
gcc-bugzilla@gcc.gnu.org
Fri May 8 19:18:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list