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

--- Comment #2 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:26e0eb1071e318728bcd33f28d055729ac48792c

commit r11-7675-g26e0eb1071e318728bcd33f28d055729ac48792c
Author: Iain Sandoe <i...@sandoe.co.uk>
Date:   Thu Mar 11 14:22:37 2021 +0000

    coroutines : Handle for await expressions in for stmts [PR98480].

    The handling of await expressions in the init, condition and iteration
    expressions of for loops had been omitted.  Fixed thus.

    gcc/cp/ChangeLog:

            PR c++/98480
            * coroutines.cc (replace_continue): Rewrite continue into
            'goto label'.
            (await_statement_walker): Handle await expressions in the
            initializer, condition and iteration expressions of for
            loops.

    gcc/testsuite/ChangeLog:

            PR c++/98480
            * g++.dg/coroutines/pr98480.C: New test.
            * g++.dg/coroutines/torture/co-await-24-for-init.C: New test.
            * g++.dg/coroutines/torture/co-await-25-for-condition.C: New test.
            * g++.dg/coroutines/torture/co-await-26-for-iteration-expr.C: New
test.

Reply via email to