[Issue 13163] New: std.conv.parse misses overflow when it results in the same value
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Jul 19 15:08:06 PDT 2014
    
    
  
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: nobody at puremagic.com
          Reporter: nilsbossung at 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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list