[Bug c++/95111] coroutines use-after-free with lambdas

avi@cloudius-systems.com gcc-bugzilla@gcc.gnu.org
Wed May 13 19:14:00 GMT 2020


--- Comment #2 from Avi Kivity <avi@cloudius-systems.com> ---
Created attachment 48524
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48524&action=edit
lame testcase

Lame testcase that shows that the lambda is passed as a pointer rather than by
value, leading to a leak if the coroutine is suspended.

More information about the Gcc-bugs mailing list