Summary: Inconsistent results when comparing structs with NaNs
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from David Simcha <> 2011-12-10 09:27:01 PST ---
When comparing structs that contain a NaN for equality, the results differ
between 32- and 64-bit binaries on DMD 2.057 beta:

// test2.d:
import std.stdio;

struct S {
    double d;  // NaN

void main() {
    S s;
    writeln(s == S.init);

$ dmd test2.d -m32
$ ./test2
$ dmd test2.d -m64
$ ./test2

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

Reply via email to