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

2016-08-09 Thread Jason Merrill
On Thu, Mar 28, 2013 at 2:14 PM, Jason Merrill wrote: > When 'this' appears in an expression, it should be an rvalue rather than a > const lvalue; in C++11, the distinction matters. And likewise for &*this. Tested x86_64-pc-linux-gnu, applying to trunk. commit 9258170ab23137c255e656ac76c96736a2e

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

2013-03-28 Thread Jason Merrill
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. commit a668cad5042d5e499b4