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 <ia...@gcc.gnu.org>: https://gcc.gnu.org/g:6bc35b091c9f5368060bac4b5ed3f7d4cb484daa commit r10-9518-g6bc35b091c9f5368060bac4b5ed3f7d4cb484daa Author: Iain Sandoe <i...@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)