Probably related to Issue 720 in some way, as it's the same error: "Internal error: ..\ztc\cod1.c 2526". void main() { cast(void[])[1]; }
Added to DStress as http://dstress.kuehne.cn/run/b/bug_cod1_2528_C.d
This test now passes with DMD 1.041 and 2.026. -[Unknown]
This test case is failing in dmd 1.051. The ICE has gone, but the result at runtime is incorrect. ---- module dstress.run.b.bug_cod1_2528_C; int main(){ auto x = cast(void[])[1]; return x.length - 1; } ---- Returns 3 instead of 0.
The DStress test case is incorrect. The arrray literal is an int, so it's 4 bytes. Casting it to void[] should give a length of 4 -- and that's exactly what it does.