https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100850
Iain Sandoe changed:
What|Removed |Added
Resolution|--- |INVALID
Status|UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100850
--- Comment #5 from Vlad ---
> Can this be closed then?
Sure. Thanks you very much!
For the history, before it's closed I'd like to leave this reference:
https://stackoverflow.com/questions/60592174/lambda-lifetime-explanation-for-c20-corouti
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100850
--- Comment #4 from Iain Sandoe ---
(In reply to Vlad from comment #3)
> My bad. It's actually a UB. The lambda lifetime is just over by the moment
> of resumption of the co-routine.
(oddly enough) we were discussing thia in a BSI meeting yeste
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100850
--- Comment #3 from Vlad ---
My bad. It's actually a UB. The lambda lifetime is just over by the moment of
resumption of the co-routine.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100850
--- Comment #2 from Vlad ---
Yet another piece -- appears with -O2/-O3/-Os.
-O0/-O1 is free from this bug.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100850
--- Comment #1 from Vlad ---
Forgot to mention... It seems to be a regression -- gcc 10.2 and 10.3 don't
demonstrate the issue on this example.