[Issue 15607] [ICE] CTFE internal error: bad compare on accessing default-initialized static immutable array of array
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jan 27 03:46:25 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15607
--- Comment #4 from Don <clugdbug at yahoo.com.au> ---
Yeah, I had no idea this existed, either.
There are *no tests* in the CTFE test suite for static initialization of static
arrays with index specified! There is code for struct static initializers, but
not for these beasts.
So I guess this is a weird case which CTFE has never implemented at all. Quite
possibly the semantic pass is leaving it as an AA literal (but marked as a
static array type) instead of converting it to an actual array literal.
--
More information about the Digitalmars-d-bugs
mailing list