Re: [PATCH Coroutines v2] Handle type deduction of auto and decltype(auto) with indirect_ref expression

2020-02-04 Thread Nathan Sidwell
On 2/3/20 8:47 PM, JunMa wrote: 在 2020/2/3 下午8:53, Nathan Sidwell 写道: sorry, I should have realized you still needed this bit.  This too is stripping a reference access, right?  I.e. TYPE_REF_P (TREE_TYPE (resume_call)) is true. You should that as the condition too. you mean

Re: [PATCH Coroutines v2] Handle type deduction of auto and decltype(auto) with indirect_ref expression

2020-02-03 Thread JunMa
在 2020/2/3 下午8:53, Nathan Sidwell 写道: On 2/2/20 9:28 PM, JunMa wrote: 在 2020/2/3 上午9:03, JunMa 写道: I think all you want here is:   await_expr = convert_from_reference (await_expr); Thanks, I'll update it. Regards JunMa Hi nathan, Here is the update.    /* This will produce the