Bug 8317 – [ICE] (cast.c, line 1986) with array of lambdas

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-06-29T10:01:00Z
Last change time
2012-12-26T21:57:12Z
Keywords
ice, rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-06-29T10:01:00Z
void main() { int function()[] foo = [() => 1, () => 'a']; // OK int function()[] bar; bar = [() => 1, () => 'a']; // ICE } DMD2.60alpha gives: Assertion failure: 'd->purity != PUREfwdref' on line 1986 in file 'cast.c'
Comment #1 by timon.gehr — 2012-06-29T11:07:43Z
Probably related to or a duplicate of issue 8309. (the assertion there fails for the same reason.)
Comment #2 by yebblies — 2012-12-26T21:57:12Z
*** This issue has been marked as a duplicate of issue 8309 ***