[Issue 23445] Can leak scope variable through delegate context

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 1 18:52:22 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23445

--- Comment #5 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to timon.gehr from comment #2)
> My initial example literally escapes a reference to a dead stack variable in
> `@safe` code. Of course this is a problem.

It is not a stack variable, though. It is allocated on the heap.

--


More information about the Digitalmars-d-bugs mailing list