https://issues.dlang.org/show_bug.cgi?id=13163

          Issue ID: 13163
           Summary: std.conv.parse misses overflow when it results in the
                    same value
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nob...@puremagic.com
          Reporter: nilsboss...@googlemail.com

import std.conv;
import std.exception;
void main()
{
    auto s = "fff";
    assertThrown!ConvOverflowException(s.parse!ubyte(16)); /* fails */
}

Pull request is on the way.

--

Reply via email to