www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1664] New: (1.23).stringof generates bad code

reply d-bugmail puremagic.com writes:
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);


-- 
Nov 13 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1664


clugdbug yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed DMD 1.024.


-- 
Nov 29 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1664






Fixed dmd 1.024 and 2.008


-- 
Dec 04 2007