I'm surprised this hasn't been implemented already. AFAIK, it was accepted and is in the current draft.
http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00436.html http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2844.html The patch still applies to the compiler itself. However, the patch doesn't handle issues addressed in update from N2831. Also, library part doesn't apply, although I believe it would be trivial to update. -- Summary: [c++0x] rvalue-references no longer bind to lvalues Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dragan at plusplus dot co dot yu GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40486