https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99575

--- Comment #1 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:0ee1ab15c237ffb50be1a5ce9c5e542b16df4d12

commit r12-4099-g0ee1ab15c237ffb50be1a5ce9c5e542b16df4d12
Author: Iain Sandoe <i...@sandoe.co.uk>
Date:   Sat Oct 2 12:44:01 2021 +0100

    coroutines: Look through NOPs for awaiter variables [PR 99575].

    There was a missing STRIP_NOPS which meant that, in some cases,
    an awaiter variable could be hidden by a view-convert-expr.

    Signed-off-by: Iain Sandoe <i...@sandoe.co.uk>

            PR c++/99575

    gcc/cp/ChangeLog:

            * coroutines.cc (build_co_await): Strip NOPs from
            candidate awaiter expressions before testing to see
            if they need a temporary.

    gcc/testsuite/ChangeLog:

            * g++.dg/coroutines/pr99575.C: New test.

Reply via email to