Thread overview |
---|
November 13, 2007 [Issue 1664] New: (1.23).stringof generates bad code | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1664 Summary: (1.23).stringof generates bad code Product: D Version: 1.023 Platform: PC OS/Version: Windows Status: NEW Keywords: wrong-code Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: clugdbug@yahoo.com.au Any floating point literal fails to compile inside .stringof, for example 1.23.stringof. Wrapping it in () allows it to compile, but it's buggy: pragma(msg, (25.5).stringof ~ (3.01).stringof); // prints 3.013.01 Workaround: Appending a "" makes it work correctly. This suggests a memory corruption problem. pragma(msg, (25.5).stringof ~ "" ~ (3.01).stringof); -- |
November 29, 2007 [Issue 1664] (1.23).stringof generates bad code | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1664 clugdbug@yahoo.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from clugdbug@yahoo.com.au 2007-11-29 06:48 ------- Fixed DMD 1.024. -- |
December 05, 2007 [Issue 1664] (1.23).stringof generates bad code | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1664 ------- Comment #2 from bugzilla@digitalmars.com 2007-12-04 23:36 ------- Fixed dmd 1.024 and 2.008 -- |
Copyright © 1999-2021 by the D Language Foundation