[Bug testsuite/124548] [16 Regression] g++.dg/coroutines/torture/func-params-07.C at -O3 failed since r16-372
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 17 20:59:33 GMT 2026
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?
More information about the Gcc-bugs
mailing list