[Issue 22977] [dip1000] can escape scope pointer returned by nested function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 28 10:51:13 UTC 2022


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

--- Comment #5 from Dennis <dkorpel at live.nl> ---
(In reply to Walter Bright from comment #4)
> It appears that the problem is the nested function is not inferring `return
> scope` when returning a scope variable from its closure.

Indeed, the linked PR (https://github.com/dlang/dmd/pull/14236) tries to fix
this, but it is currently blocked by buildkite projects.

--


More information about the Digitalmars-d-bugs mailing list