On 3/14/21 8:29 PM, Iain Sandoe wrote:
Hi

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.

The conversion had been omitted, fixed as below,

tested on x86_64-darwin, x86_64-linux-gnu, and on cppcoro and
folly/coroutines.

OK for master / 10.x?
thanks
Iain

gcc/cp/ChangeLog:

        * coroutines.cc (expand_one_await_expression): If the
        await_ready() expression is not a boolean then convert it
        as required.


ok


--
Nathan Sidwell

Reply via email to