www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3074] New: std.conv.to!(string)(int.min)

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3074

           Summary: std.conv.to!(string)(int.min)
           Product: D
           Version: 2.030
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: julien ozeful.be


Hello,

import  std.stdio,
              std.conv;

void main()
{
    writeln(to!(string)(int.min));
}


dmd 2.030, stock phobos, Intel Core i7.

On Debian 5 32b, -debug :
    returns "core.exception.RangeError std.conv(2473): Range violation".
On Windows XP 32b, -debug :
    returns "core.exception.RangeError std.conv(2472): Range violation".

On Debian 5 32b, -release :
    returns "-184¨šˆ¿4071562067968"
On Windows XP 32b, -release :
    returns "-18446744071562067968"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 17 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3074


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei metalanguage.com
         AssignedTo|nobody puremagic.com        |andrei metalanguage.com




-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 19 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3074


Andrei Alexandrescu <andrei metalanguage.com> changed:

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




-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 27 2009