Hi, This simple patch actually is a missing part of previous one at https://gcc.gnu.org/ml/gcc-patches/2020-01/msg01451.html It picks up more CO_AWAIT_EXPR expanding cases. Test is also added.
Bootstrap and test on x86_64. Is it OK? Thanks, bin gcc/cp 2020-02-05 Bin Cheng <bin.ch...@linux.alibaba.com> * coroutines.cc (co_await_expander): Handle more CO_AWAIT_EXPR expanding cases. gcc/testsuite 2020-02-05 Bin Cheng <bin.ch...@linux.alibaba.com> * g++.dg/coroutines/co-await-syntax-10.C: New test.
0001-Pickup-more-CO_AWAIT_EXPR-expanding-cases.patch
Description: Binary data