[PATCH Coroutines]Fix ICE when co_awaiting on void type

bin.cheng bin.cheng@linux.alibaba.com
Mon Jan 20 08:04:00 GMT 2020


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.linux@linux.alibaba.com>

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

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

        * g++.dg/coroutines/co-await-void_type.C: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-ICE-when-co_awaiting-on-void-type.patch
Type: application/octet-stream
Size: 2017 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20200120/cb252869/attachment.obj>


More information about the Gcc-patches mailing list