https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117231
--- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #4) > Thanks. If so, Looking at the generated code (input to the coroutine lowering) it seems highly likely that this results from the use of a statement expression containing co_xxx. So it is almost certainly a dup. Coroutines do not yet fully support statement expressions - but the patches in my queue have sufficient for cases so far produced in the FE. >it would be nice to include this testcase into the testsuite > afterwards (sure, not with println but int e = 0; and if (++e != item) > __builtin_abort (); in the loop plus if (e != 3) __builtin_abort (); at the > end. sure, that's fine - I do note in passing that the compile-time for this simple case is quite significant (don't know if that's <generator> or <print> at this point - will see when preparing the test-case).