Summary: std.conv.parse faulty for floating point with -O -m32
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Ali Cehreli <> 2011-02-23 20:33:02 PST ---
The following assert fails when compiled with dmd's command line options -O

import std.conv;

void main()
    char[] input = "1.5e3".dup;
    assert(1500 == parse!double(input));  // <-- FAILS

It fails for float and real as well.

Please note that this combination works: -O -m64


Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to