[Bug c++/100850] [coroutine] Wrong addresses of variables captured by reference into lambda co-routines.

2021-06-02 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100850 Iain Sandoe changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c++/100850] [coroutine] Wrong addresses of variables captured by reference into lambda co-routines.

2021-06-02 Thread vsolontsov at volanttrading dot com via Gcc-bugs
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

[Bug c++/100850] [coroutine] Wrong addresses of variables captured by reference into lambda co-routines.

2021-06-02 Thread iains at gcc dot gnu.org via Gcc-bugs
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

[Bug c++/100850] [coroutine] Wrong addresses of variables captured by reference into lambda co-routines.

2021-06-01 Thread vsolontsov at volanttrading dot com via Gcc-bugs
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.

[Bug c++/100850] [coroutine] Wrong addresses of variables captured by reference into lambda co-routines.

2021-06-01 Thread vsolontsov at volanttrading dot com via Gcc-bugs
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.

[Bug c++/100850] [coroutine] Wrong addresses of variables captured by reference into lambda co-routines.

2021-06-01 Thread vsolontsov at volanttrading dot com via Gcc-bugs
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.