Thread overview | |||||
---|---|---|---|---|---|
|
December 10, 2011 [Issue 7089] New: Inconsistent results when comparing structs with NaNs | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: dsimcha@yahoo.com --- Comment #0 from David Simcha <dsimcha@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: ------- |
December 10, 2011 [Issue 7089] Inconsistent results when comparing structs with NaNs | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=7089 Trass3r <mrmocool@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |mrmocool@gmx.de Resolution| |DUPLICATE --- Comment #1 from Trass3r <mrmocool@gmx.de> 2011-12-10 10:01:55 PST --- According to Kenji *** This issue has been marked as a duplicate of issue 3789 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 10, 2011 [Issue 7089] Inconsistent results when comparing structs with NaNs | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=7089 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE | --- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2011-12-10 11:44:11 PST --- Umm. Yes, issue 3789 is not yet fixed, but it is front-end issue. Then -m32 and -m64 should output same wrong result 'true', but it doesn't. It seems to me that there is a back-end or a optimizer bug. (Not only issue 3789) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation