[Bug c++/99047] ICE on simple task coroutine example
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 22 22:04:34 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99047
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Iain D Sandoe
<iains@gcc.gnu.org>:
https://gcc.gnu.org/g:6bc35b091c9f5368060bac4b5ed3f7d4cb484daa
commit r10-9518-g6bc35b091c9f5368060bac4b5ed3f7d4cb484daa
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Sun Mar 14 14:42:52 2021 +0000
coroutines : Convert await_ready () expressions to bool [PR99047].
The awaiter.await_ready() should be converted per [expr.await]/3
(3.6) await-ready is the expression e.await_ready(), contextually
converted to bool.
gcc/cp/ChangeLog:
PR c++/99047
* coroutines.cc (expand_one_await_expression): If the
await_ready() expression is not a boolean then convert it
as required.
gcc/testsuite/ChangeLog:
PR c++/99047
* g++.dg/coroutines/pr99047.C: New test.
(cherry picked from commit 541840b891d61ea70cddd046c96698bb70d7f52c)
More information about the Gcc-bugs
mailing list