[Bug c++/103871] [11/12/13 Regression] co_await causes build error
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 15 22:29:49 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103871
--- Comment #18 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:ea4dd8f512979db247c54d6b41377bb73699bcd7
commit r13-6702-gea4dd8f512979db247c54d6b41377bb73699bcd7
Author: Jason Merrill <jason@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.
More information about the Gcc-bugs
mailing list