Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
February 03, 2007 [Issue 925] New: ICE on casting array literal to void[] | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=925 Summary: ICE on casting array literal to void[] Product: D Version: 1.004 Platform: PC OS/Version: Windows Status: NEW Keywords: ice-on-valid-code Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: deewiant@gmail.com 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]; } -- |
April 05, 2007 [Issue 925] ICE on casting array literal to void[] | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=925 thomas-dloop@kuehne.cn changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Windows |All ------- Comment #1 from thomas-dloop@kuehne.cn 2007-04-05 11:33 ------- Added to DStress as http://dstress.kuehne.cn/run/b/bug_cod1_2528_C.d -- |
March 30, 2009 [Issue 925] ICE on casting array literal to void[] | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=925 unknown@simplemachines.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME ------- Comment #2 from unknown@simplemachines.org 2009-03-30 00:49 ------- This test now passes with DMD 1.041 and 2.026. -[Unknown] -- |
November 07, 2009 [Issue 925] ICE on casting array literal to void[] | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=925 Robert Clipsham <robert@octarineparrot.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-valid-code |wrong-code Status|RESOLVED |REOPENED CC| |robert@octarineparrot.com Resolution|WORKSFORME | --- Comment #3 from Robert Clipsham <robert@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: ------- |
November 13, 2009 [Issue 925] ICE on casting array literal to void[] | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=925 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |clugdbug@yahoo.com.au Resolution| |FIXED --- Comment #4 from Don <clugdbug@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: ------- |
Copyright © 1999-2021 by the D Language Foundation