On 12/14/2011 12:14 AM, Jason Merrill wrote:
The code for casting to rvalue ref was assuming that no base adjustment
would be necessary. This patch delegates to the normal lvalue binding
code, and then changes the result to be an rvalue reference.
The test for DECL_P isn't sufficient to catch
The code for casting to rvalue ref was assuming that no base adjustment
would be necessary. This patch delegates to the normal lvalue binding
code, and then changes the result to be an rvalue reference.
Tested x86_64-pc-linux-gnu, applying to trunk. Will apply to 4.5/4.6 as
well after testin