[Issue 925] ICE on casting array literal to void[]
http://d.puremagic.com/issues/show_bug.cgi?id=925 Don clugd...@yahoo.com.au changed: What|Removed |Added Status|REOPENED|RESOLVED CC||clugd...@yahoo.com.au Resolution||FIXED --- Comment #4 from Don clugd...@yahoo.com.au 2009-11-13 04:12:15 PST --- 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. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 925] ICE on casting array literal to void[]
http://d.puremagic.com/issues/show_bug.cgi?id=925 Robert Clipsham rob...@octarineparrot.com changed: What|Removed |Added Keywords|ice-on-valid-code |wrong-code Status|RESOLVED|REOPENED CC||rob...@octarineparrot.com Resolution|WORKSFORME | --- Comment #3 from Robert Clipsham rob...@octarineparrot.com 2009-11-07 08:01:58 PST --- 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. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---