Hi,

We found more ICEs because of unexpanded CO_AWAIT_EXPR, it turned out we
can fix these issues with more simplification in function co_await_expander.  
Here
is the patch with a new test.

Bootstrap and test on x86_64.  Is it OK?

Thanks,
bin

gcc/cp
2020-02-10  Bin Cheng  <bin.ch...@linux.alibaba.com>

        * coroutines.cc (co_await_expander): Simplify.

gcc/testsuite
2020-02-10  Bin Cheng  <bin.ch...@linux.alibaba.com>

        * g++.dg/coroutines/co-await-syntax-10.C: New test.
        * g++.dg/coroutines/co-await-syntax-11.C: New test.


------------------------------------------------------------------
Sender:bin.cheng <bin.ch...@linux.alibaba.com>
Sent At:2020 Feb. 5 (Wed.) 09:34
Recipient:GCC Patches <gcc-patches@gcc.gnu.org>
Cc:Iain Sandoe <i...@sandoe.co.uk>; Nathan Sidwell <nat...@acm.org>
Subject:[PATCH Coroutines]Pickup more CO_AWAIT_EXPR expanding cases


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

Attachment: 0002-Simplify-co_await_expander.patch
Description: Binary data

Reply via email to