www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18290] New: std.conv.parse throws ConvOverflowException for

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

          Issue ID: 18290
           Summary: std.conv.parse throws ConvOverflowException for
                    negative values in hex
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: rumbu rumbu.ro

string input = "80000000";
auto x = parse!int(input, 16);
//ConvOverflowException

--
Jan 23