Hi,

This simple patch skips calling complete_type_or_else for void type, which 
fixes the
corresponding ICE.

Thanks,
bin

gcc/cp
2020-01-20  Bin Cheng  <bin.li...@linux.alibaba.com>

        * coroutines.cc (build_co_await): Skip getting complete type for void.

gcc/testsuite
2020-01-20  Bin Cheng  <bin.li...@linux.alibaba.com>

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

Attachment: 0001-Fix-ICE-when-co_awaiting-on-void-type.patch
Description: Binary data

Reply via email to