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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> Yes, the lambda captures a local variable by value,

Duh, sorry, I meant captures a local variables BY REFERENCE.

> and then when you invoke
> the lambda it refers to a dead variable.

Reply via email to