Bug 7500 – [ICE] (template.c line 5287) with immutable lambda function

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-02-13T20:49:00Z
Last change time
2012-02-27T12:11:46Z
Keywords
ice, pull, rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-02-13T20:49:10Z
void main() { alias immutable bool function(int[]) Foo; Foo f = a => true; } DMD 2.058beta3: Assertion failure: 'global.errors' on line 5287 in file 'template.c'
Comment #1 by bearophile_hugs — 2012-02-20T14:53:25Z
See also issue 7554
Comment #2 by k.hara.pg — 2012-02-26T08:26:15Z
Comment #3 by github-bugzilla — 2012-02-27T11:55:55Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2c7907c613736338fbde6deb1c38a493154a2d48 fix Issue 7500 - [ICE] (template.c line 5287) with immutable lambda function https://github.com/D-Programming-Language/dmd/commit/b96f7d5a363eaca65dcc7402321c6f5d019ad048 Merge pull request #768 from 9rnsr/fix7500 Issue 7500 - [ICE] (template.c line 5287) with immutable lambda function