[Bug c++/95017] [coroutines] Failure to generate code for co_yield expression if its the only statement in a loop

iains at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat May 9 10:43:11 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95017

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> ---
thanks for the report!
(an odd case where it's a single line loop which triggers the
reference-capture-lifetime-extension).

As luck would have it, this was fixed on master yesterday - and I will be back
porting the change to 10.2.

*** This bug has been marked as a duplicate of bug 95003 ***


More information about the Gcc-bugs mailing list