Re: [C++ PATCH] Fix wrong-code with generic lambda (PR c++/86943)

2018-11-28 Thread Jason Merrill
On 11/27/18 5:41 PM, Jakub Jelinek wrote: On Tue, Nov 27, 2018 at 05:20:56PM -0500, Jason Merrill wrote: On 11/23/18 4:15 PM, Jakub Jelinek wrote: Hi! On the following testcase, the call to operator () is marked as CALL_FROM_THUNK_P and therefore genericization ignores all subtrees thereof. Un

Re: [C++ PATCH] Fix wrong-code with generic lambda (PR c++/86943)

2018-11-27 Thread Jakub Jelinek
On Tue, Nov 27, 2018 at 05:20:56PM -0500, Jason Merrill wrote: > On 11/23/18 4:15 PM, Jakub Jelinek wrote: > > Hi! > > > > On the following testcase, the call to operator () is marked as > > CALL_FROM_THUNK_P and therefore genericization ignores all subtrees thereof. > > Unfortunately, one of the

Re: [C++ PATCH] Fix wrong-code with generic lambda (PR c++/86943)

2018-11-27 Thread Jason Merrill
On 11/23/18 4:15 PM, Jakub Jelinek wrote: Hi! On the following testcase, the call to operator () is marked as CALL_FROM_THUNK_P and therefore genericization ignores all subtrees thereof. Unfortunately, one of the arguments is a move ctor call which is not itself CALL_FROM_THUNK_P and thus we nee

[C++ PATCH] Fix wrong-code with generic lambda (PR c++/86943)

2018-11-23 Thread Jakub Jelinek
Hi! On the following testcase, the call to operator () is marked as CALL_FROM_THUNK_P and therefore genericization ignores all subtrees thereof. Unfortunately, one of the arguments is a move ctor call which is not itself CALL_FROM_THUNK_P and thus we need to genericize its arguments, otherwise we