[Bug c++/95599] [coroutines] destructor for temporary operand to co_yield expression called before end of full-expression

iains at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 9 09:40:25 GMT 2020


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
           Assignee|unassigned at gcc dot gnu.org      |iains at gcc dot gnu.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-06-09
   Target Milestone|---                         |10.2

--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> ---
thanks for the report.
I made a thinko with awaitables (they were not being considered in the same way
as other captured-by-reference entities).  I have a local rework in progress to
fix this.


More information about the Gcc-bugs mailing list