https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118574
--- Comment #24 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #23) > Or could we try to walk all the cleanups queued at the end of the range-for > and pushdecl any temporaries mentioned in there if they don't have DECL_NAME > yet? we should not need a solution that requires us pushdecl - these vars do not need to be visible to lookup etc. - we have a mechanism to give temporaries a compiler-local name when they are added to the BIND_EXPR .. the important thing is for the coroutines code to be able to reason about _which_ temporaries to process in this way.