[Issue 5908] Optimizer generates wrong value with divide-by-zero.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 5 15:07:19 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5908


jens.k.mueller at gmx.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jens.k.mueller at gmx.de


--- Comment #2 from jens.k.mueller at gmx.de 2011-05-05 15:03:25 PDT ---
I would have expected that
-----------------------------------------
import std.math, std.conv;
void main() {
    float c = 1.0f/0.0f;
    assert(!isFinite(c), to!string(c));
}
-----------------------------------------
fails, too.
But it doesn't.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list