[Issue 17718] [scope] function literal arguments can be escaped

2017-09-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17718 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17718] [scope] function literal arguments can be escaped

2017-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17718 --- Comment #2 from ZombineDev --- (Where line 9 is the `alias f = ...` same as in the original example.) --

[Issue 17718] [scope] function literal arguments can be escaped

2017-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17718 --- Comment #1 from ZombineDev --- If I change the structure to: struct S { int p; int* leak() return scope { return } } I get: scope_bug17718.d(9): Error: returning s.leak() escapes a reference to parameter s,

[Issue 17718] [scope] function literal arguments can be escaped

2017-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17718 ZombineDev changed: What|Removed |Added CC|