http://d.puremagic.com/issues/show_bug.cgi?id=9923
Summary: [ICE] (interpret.c line 167) with countUntil on Typedef[] Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2013-04-11 16:03:48 PDT --- import std.algorithm: countUntil; import std.typecons: Typedef; alias Foo = Typedef!(const string); immutable Foo[] bar = ["a", "b"]; void main() { Foo a; countUntil(bar, a); } DMD 2.063alpha gives: Assertion failure: 'v->ctfeAdrOnStack >= 0 && v->ctfeAdrOnStack < stackPointer()' on line 167 in file 'interpret.c' Removing the const the compiler doesn't crash: import std.algorithm: countUntil; import std.typecons: Typedef; alias Foo = Typedef!(string); immutable Foo[] bar = ["a", "b"]; void main() { Foo a; countUntil(bar, a); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------