http://d.puremagic.com/issues/show_bug.cgi?id=8303
Summary: [ICE] (interpret.c, line 100) Maybe caused by a closure Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2012-06-26 15:39:18 PDT --- This bug seems to require several details to happen: import std.algorithm: map; auto foo(in int[] table) { return (int x) { return table[0]; }; } void main() { const int[] table = [1]; auto bar = foo(table); [1].map!bar(); // OK [1].map!(foo(table))(); // crash } DMD 2.060alpha: test.d(3): Error: closures are not yet supported in CTFE test.d(11): called from here: foo(table) Assertion failure: 'v->ctfeAdrOnStack >= 0 && v->ctfeAdrOnStack < stackPointer()' on line 100 in file 'interpret.c' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------