[Issue 15204] wrong code with -m32 -O -release (floating points, x86)

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Nov 14 16:23:22 PST 2015


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

--- Comment #4 from Илья Ярошенко <ilyayaroshenko at gmail.com> ---
(In reply to Vladimir Panteleev from comment #2)
> (In reply to Илья Ярошенко from comment #0)
> > See debug code in https://github.com/D-Programming-Language/phobos/pull/3559
> 
> Can you post a self-contained test case here?

unittest {
    double a, b;
        a = -5.50533e+307;
        b = 4.49423e+307;
    writefln("a = %a, b = %a, (a+b)/2.0 = %a", a, b, (a+b)/2.0);
    assert((a+b)/2.0 > a);
}

--


More information about the Digitalmars-d-bugs mailing list