Summary: Wrong const-folding comparisons involving complex nans
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from yebblies <> 2012-02-27 03:07:26 EST ---
When compiled with -inline, the backend will attempt to const-fold the
comparison and get the wrong result.

cfloat get() { return cfloat.nan; }

void main()
    assert(!(get() == 0));

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

Reply via email to