https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105104
--- Comment #5 from John Eivind Helset <jehelset at gmail dot com> --- Created attachment 52729 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52729&action=edit Patch with testcase. Tried adding a testcase to the g++.dg/coroutines testsuite. Used dg-ice, but it seems to complain about excess errors anyways: FAIL: g++.dg/coroutines/pr105104.C (test for excess errors) Excess errors: during GIMPLE pass: coro-early-expand-ifns