Re: C++ PATCH for c++/69842 (wrong error with generic lambda)

2016-02-25 Thread Jason Merrill
On 02/17/2016 03:44 PM, Jason Merrill wrote: The problem here was that the call from the stub returned by the conversion function to the op() was changing an xvalue to an lvalue, leading to a parameter of the wrong type in the op(). ...and now, handling variadic templates as well. Tested x86_6

C++ PATCH for c++/69842 (wrong error with generic lambda)

2016-02-17 Thread Jason Merrill
The problem here was that the call from the stub returned by the conversion function to the op() was changing an xvalue to an lvalue, leading to a parameter of the wrong type in the op(). Tested x86_64-pc-linux-gnu, applying to trunk. commit 54448906d76dd9df2523e6c3950ed368cb63b4de Author: Jaso