Potential GCC Coroutines Bug

Iain Sandoe iain@sandoe.co.uk
Wed Oct 14 08:26:41 GMT 2020


Hello David,

David Ledger <DavidLedger@LIVE.COM.AU> wrote:

> I believe the GCC coroutine implementation has a bug, but honestly not  
> completely sure…
> https://godbolt.org/z/dsGe9x
>
> Hope this helps with GCC/libstdc++ implementation.
> It looks like the optimiser reorders calls to return_value, yield_value  
> and await_resume.

thanks for the report - would you mind filing a PR in bugzilla
https://gcc.gnu.org/bugzilla/
so that the issue doens’t get lost?

thanks
Iain



More information about the Libstdc++ mailing list