Bug 17430 – [scope] delegate can escape context ptr

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-05-25T06:17:31Z
Last change time
2017-08-16T13:23:58Z
Assigned to
No Owner
Creator
Martin Nowak

Comments

Comment #0 by code — 2017-05-25T06:17:31Z
cat > bug.d << CODE struct S { void foo() {} } void delegate() bar() @safe { S s; auto dg = &s.foo; // should be inferred as scope return dg; } CODE dmd -c -dip1000 bug
Comment #1 by bugzilla — 2017-07-26T03:31:35Z
Comment #2 by github-bugzilla — 2017-08-06T09:26:25Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/7f3af47c742e6ec30b69e4ad4064d2474ca31769 fix Issue 17430 - [scope] delegate can escape context ptr https://github.com/dlang/dmd/commit/d8e010ffb89d8569f10a95a3d2fcb95dad6b29a6 Merge pull request #7027 from WalterBright/fix17430 fix Issue 17430 - [scope] delegate can escape context ptr merged-on-behalf-of: Rainer Schuetze <[email protected]>
Comment #3 by github-bugzilla — 2017-08-07T13:17:35Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/7f3af47c742e6ec30b69e4ad4064d2474ca31769 fix Issue 17430 - [scope] delegate can escape context ptr https://github.com/dlang/dmd/commit/d8e010ffb89d8569f10a95a3d2fcb95dad6b29a6 Merge pull request #7027 from WalterBright/fix17430
Comment #4 by github-bugzilla — 2017-08-16T13:23:58Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/7f3af47c742e6ec30b69e4ad4064d2474ca31769 fix Issue 17430 - [scope] delegate can escape context ptr https://github.com/dlang/dmd/commit/d8e010ffb89d8569f10a95a3d2fcb95dad6b29a6 Merge pull request #7027 from WalterBright/fix17430