Bug 898 – std.conv.toInt doesn't raise ConvOverflowError

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-01-28T08:12:00Z
Last change time
2014-02-16T15:23:46Z
Assigned to
bugzilla
Creator
diablotail

Comments

Comment #0 by diablotail — 2007-01-28T08:12:02Z
A code like: writefln(std.conv.toInt("5656566565")); doesn't raise an exception, and it also prints the value 1361599269 resulted from the integer overflow.
Comment #1 by diablotail — 2007-02-06T11:42:59Z
*** Fixed in version 1.005 ***