C++ PATCH for c++/56701 (treating 'this' as an rvalue)

Jason Merrill jason@redhat.com
Thu Mar 28 18:14:00 GMT 2013

When 'this' appears in an expression, it should be an rvalue rather than 
a const lvalue; in C++11, the distinction matters.

The cp_build_indirect_ref change is to avoid building extra copies of 
*this due to this change.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 56701.patch
Type: text/x-patch
Size: 1776 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130328/6ea9b7d6/attachment.bin>

More information about the Gcc-patches mailing list