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

--- Comment #20 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:1da2d99c632a90e5af55c8f8db1c11af587bb0a0

commit r12-9434-g1da2d99c632a90e5af55c8f8db1c11af587bb0a0
Author: Jason Merrill <ja...@redhat.com>
Date:   Wed Mar 15 16:33:37 2023 -0400

    c++: co_await and initializer_list [PR103871]

    When flatten_await_stmt processes the backing array for an
initializer_list,
    we call cp_build_modify_expr to initialize the promoted variable from the
    TARGET_EXPR; that needs to be accepted.

            PR c++/103871
            PR c++/98056

    gcc/cp/ChangeLog:

            * typeck.cc (cp_build_modify_expr): Allow array initialization of
            DECL_ARTIFICIAL variable.

    gcc/testsuite/ChangeLog:

            * g++.dg/coroutines/co-await-initlist1.C: New test.

Reply via email to