https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124548
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|wrong-code |
Component|c++ |testsuite
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Oh from 9.5.4/13:
```
[Note: If a coroutine has a parameter passed by reference, resuming the
coroutine after the lifetime of the entity referred to by that parameter has
ended is likely to result in undefined behavior. —end note]
```
So I guess this is just a testcase issue after all. The rvalue reference's
lifetime ends right after the call?