Bug 12334 – Cannot access frame pointer of nested class from inside lambda

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-09T22:06:00Z
Last change time
2014-03-13T14:32:05Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2014-03-09T22:06:51Z
From: http://forum.dlang.org/thread/[email protected] void main() { class B { int a; this(int aa) { a = aa; } } auto foo = { return new B(1); // NG }; static assert(is(typeof(foo) == delegate)); // fails }
Comment #1 by k.hara.pg — 2014-03-09T23:34:56Z
Comment #2 by github-bugzilla — 2014-03-13T14:24:54Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b0515c5d2076b01bf778f23aeb90655ed9e5e853 fix Issue 12334 - Cannot access frame pointer of nested class from inside lambda https://github.com/D-Programming-Language/dmd/commit/87b8f78752a035a67aebf5de60d2440ab43c5309 Merge pull request #3371 from 9rnsr/fix12334 Issue 12334 - Cannot access frame pointer of nested class from inside lambda