https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99047
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>: https://gcc.gnu.org/g:541840b891d61ea70cddd046c96698bb70d7f52c commit r11-7677-g541840b891d61ea70cddd046c96698bb70d7f52c 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.