digitalmars.D.bugs - [Issue 13221] New: [ICE] '0' on line 318 in file 'interpret.c'
- via Digitalmars-d-bugs (28/28) Jul 28 2014 https://issues.dlang.org/show_bug.cgi?id=13221
https://issues.dlang.org/show_bug.cgi?id=13221 Issue ID: 13221 Summary: [ICE] '0' on line 318 in file 'interpret.c' Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: jblume jblume.com import std.typecons; template test(T) {} void main() { foreach (r; 0 .. 0) { enum i = r; test!(Tuple!bool[i]); } } On v2.066.0-b6 this results in: main.d(9): Error: variable r cannot be read at compile time main.d(10): Error: CTFE internal error: ErrorExp in main.d(10) Assertion failure: '0' on line 318 in file 'interpret.c' --
Jul 28 2014