Re: [PATCH] c++, coroutines: Fix handling of bool await_suspend() [PR115905].

2024-09-14 Thread Iain Sandoe
Hi Jason, > On 10 Sep 2024, at 20:22, Jason Merrill wrote: > > On 9/7/24 6:45 AM, Iain Sandoe wrote: >> As noted in the PR the action of the existing implementation was to >> treat a false value from await_suspend () as equivalent to "do not >> suspend". Actually it needs to be the equivalent o

Re: [PATCH] c++, coroutines: Fix handling of bool await_suspend() [PR115905].

2024-09-10 Thread Jason Merrill
On 9/7/24 6:45 AM, Iain Sandoe wrote: As noted in the PR the action of the existing implementation was to treat a false value from await_suspend () as equivalent to "do not suspend". Actually it needs to be the equivalent of "resume" - and we need to restart the dispatcher - since the await_susp

[PATCH] c++, coroutines: Fix handling of bool await_suspend() [PR115905].

2024-09-07 Thread Iain Sandoe
Tested on x86_64-darwin, powerpc64le-linux, OK for trunk? --- 8< --- As noted in the PR the action of the existing implementation was to treat a false value from await_suspend () as equivalent to "do not suspend". Actually it needs to be the equivalent of "resume" - and we need to restart the d