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

vsolontsov at volanttrading dot com gcc-bugzilla@gcc.gnu.org
Tue Jun 1 16:18:26 GMT 2021


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

--- Comment #3 from Vlad <vsolontsov at volanttrading dot com> ---
My bad. It's actually a UB. The lambda lifetime is just over by the moment of
resumption of the co-routine.


More information about the Gcc-bugs mailing list