D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3074 - std.conv.to!(string)(int.min)
Summary: std.conv.to!(string)(int.min)
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: Andrei Alexandrescu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-17 00:04 UTC by Julien Leclercq
Modified: 2015-06-09 01:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Julien Leclercq 2009-06-17 00:04:06 UTC
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"