Re: Question about lambda function variables

2016-11-08 Thread Martin Liška
On 11/08/2016 10:12 AM, Jakub Jelinek wrote: > On Tue, Nov 08, 2016 at 09:58:13AM +0100, Martin Liška wrote: >> Problematic is lambda function (use-after-scope-ice-1.ii.004t.gimple): >> C::AsyncCloseConnectionWithErrorMsg(const A&):: (const struct >> __lambda0 * const __closure) >> { >> const st

Re: Question about lambda function variables

2016-11-08 Thread Jakub Jelinek
On Tue, Nov 08, 2016 at 09:58:13AM +0100, Martin Liška wrote: > Problematic is lambda function (use-after-scope-ice-1.ii.004t.gimple): > C::AsyncCloseConnectionWithErrorMsg(const A&):: (const struct > __lambda0 * const __closure) > { > const struct A message [value-expr: __closure->__message]; >

Question about lambda function variables

2016-11-08 Thread Martin Liška
Hello. After I've installed the patch, there's a small fallout I've been working on. On of issue I met are lambda functions where we current ICE: $ cat /tmp/use-after-scope-ice-1.ii class A { public: A () : value (123) {} int value; }; template class B { public: template B (F p1) : mFun