[Issue 6672] New: [CTFE] ICE on compile time std.algorithm.sort
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 14 23:36:13 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6672
Summary: [CTFE] ICE on compile time std.algorithm.sort
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2011-09-14 23:35:53 PDT ---
import std.algorithm;
string foo(){
auto kw=["alias", "align", "asm", "assert", "auto", "body", "bool",
"break", "byte", "case", "cast", "catch", "cdouble", "cent", "cfloat", "char",
"clas\
s", "const", "continue", "creal", "dchar", "debug", "default", "delegate",
"delete", "deprecated"];
sort(kw);
return "success!";
}
pragma(msg, foo());
void main() {}
This fails with
dmd: interpret.c:1845: virtual Expression*
ArrayLiteralExp::interpret(InterState*, CtfeGoal): Assertion
`((IndexExp*)e)->e1 != this' failed.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list