[Issue 7089] New: Inconsistent results when comparing structs with NaNs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 10 09:27:02 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7089
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
AssignedTo: nobody at puremagic.com
ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at yahoo.com> 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
true
$ dmd test2.d -m64
$ ./test2
false
--
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