[Bug c++/95615] [coroutines] Coroutine frame and promise is leaked if exception thrown from promise.initial_suspend()

iains at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 9 18:56:44 GMT 2020


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-06-09
   Target Milestone|---                         |10.2
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> ---
thanks for the report.

I think the get-return-object case should now be handled (once the patch to add
the cleanup is approved), since that can be covered by a conventional cleanup
expression.

Will need to look at the best way to handle the other two.


More information about the Gcc-bugs mailing list