Re: [PATCH] coroutines: Handle initial awaiters with non-void returns [PR 100127].

2021-11-23 Thread Jason Merrill via Gcc-patches
On 11/19/21 12:40, Iain Sandoe wrote: On 18 Nov 2021, at 23:42, Iain Sandoe wrote: On 18 Nov 2021, at 22:13, Jason Merrill via Gcc-patches wrote: On 11/5/21 11:46, Iain Sandoe wrote: The way in which a C++20 coroutine is specified discards any value tree aw_r = TREE_VEC_ELT

Re: [PATCH] coroutines: Handle initial awaiters with non-void returns [PR 100127].

2021-11-19 Thread Iain Sandoe
Hi Jason, > On 18 Nov 2021, at 23:42, Iain Sandoe wrote: > > > >> On 18 Nov 2021, at 22:13, Jason Merrill via Gcc-patches >> wrote: >> >> On 11/5/21 11:46, Iain Sandoe wrote: >>> The way in which a C++20 coroutine is specified discards any value >>> tree aw_r = TREE_VEC_ELT (vec,

Re: [PATCH] coroutines: Handle initial awaiters with non-void returns [PR 100127].

2021-11-18 Thread Iain Sandoe
> On 18 Nov 2021, at 22:13, Jason Merrill via Gcc-patches > wrote: > > On 11/5/21 11:46, Iain Sandoe wrote: >> The way in which a C++20 coroutine is specified discards any value >> that might be returned from the initial or final await expressions. >> This PR ICE was caused by an initial

Re: [PATCH] coroutines: Handle initial awaiters with non-void returns [PR 100127].

2021-11-18 Thread Jason Merrill via Gcc-patches
On 11/5/21 11:46, Iain Sandoe wrote: The way in which a C++20 coroutine is specified discards any value that might be returned from the initial or final await expressions. This PR ICE was caused by an initial await expression with an await_resume () returning a reference, the function rewrite