http://d.puremagic.com/issues/show_bug.cgi?id=7771
Summary: [ICE][CTFE] With maketrans and string slicing 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 2012-03-25 12:19:38 PDT --- import std.ascii: letters, uppercase; import std.string: maketrans; immutable r = maketrans(uppercase, uppercase[13 .. $] ~ uppercase[0 .. 13]); void main() {} DMD 2.059head: Assertion failure: '!v->isDataseg() || v->isCTFE()' on line 108 in file 'interpret.c' With small changes it crashes in another point: import std.string: maketrans; void main() { immutable s = "foo"; static r = maketrans(s, s[0 .. $]); } DMD 2.059head: Assertion failure: 'v->ctfeAdrOnStack >= 0 && v->ctfeAdrOnStack < stackPointer()' on line 97 in file 'interpret.c' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------