This test now passes with DMD 1.041 and 2.026.
-[Unknown]
Comment #3 by robert — 2009-11-07T08:01:58Z
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.
Comment #4 by clugdbug — 2009-11-13T04:12:15Z
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.