← Back to index
|
Original Bugzilla link
Bug 8226 – Global lambda assign to const/immutable
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-06-11T14:02:00Z
Last change time
2012-06-14T07:01:05Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2012-06-11T14:02:59Z
immutable f = (int x) => x; void main() {} DMD 2.060alpha gives: test.d(1): Error: non-constant nested delegate literal expression __lambda1 (According to nazriel on IRC #D, dmd 2.059 gives an internal error backend/elfobj.c 455, and LDC compiles it).
Comment #1
by k.hara.pg — 2012-06-11T19:30:37Z
https://github.com/D-Programming-Language/dmd/pull/999
Comment #2
by github-bugzilla — 2012-06-14T00:36:07Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/c6eac5a257644cfef0b29fe2c23f61bc339cfb69
fix Issue 8226 - Global lambda assign to const/immutable
https://github.com/D-Programming-Language/dmd/commit/a6fc13b1101efb66b00391343d837ac0cbcf9620
Merge pull request #999 from 9rnsr/fix8226 Issue 8226 - Global lambda assign to const/immutable