Thread overview | ||||||
---|---|---|---|---|---|---|
|
June 19, 2009 [Issue 3078] New: NaN reported as equal to zero | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3078 Summary: NaN reported as equal to zero Product: D Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: blocker Priority: P1 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: andrei@metalanguage.com import std.math; void main() { double x[] = new double[1]; double a = x[0]; assert(a == 0); assert(x[0] == 0); assert(isnan(a)); assert(isnan(x[0])); } No assert fails in the code above - and one hour is gone off my life. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 19, 2009 [Issue 3078] NaN reported as equal to zero | ||||
---|---|---|---|---|
| ||||
Posted in reply to andrei@metalanguage.com | http://d.puremagic.com/issues/show_bug.cgi?id=3078 --- Comment #1 from Andrei Alexandrescu <andrei@metalanguage.com> 2009-06-19 06:10:23 PDT --- I noticed that the bug manifests itself only when building with -O. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 19, 2009 [Issue 3078] NaN reported as equal to zero | ||||
---|---|---|---|---|
| ||||
Posted in reply to andrei@metalanguage.com | http://d.puremagic.com/issues/show_bug.cgi?id=3078 Frits van Bommel <fvbommel@wxs.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.045 --- Comment #2 from Frits van Bommel <fvbommel@wxs.nl> 2009-06-19 06:27:42 PDT --- This is present in both 1.045 and 2.030; setting version to 1.045 because D1 updates seem to be more likely to be forgotten for dual-version bugs (and because it was unset). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 09, 2009 [Issue 3078] NaN reported as equal to zero | ||||
---|---|---|---|---|
| ||||
Posted in reply to andrei@metalanguage.com | http://d.puremagic.com/issues/show_bug.cgi?id=3078 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2009-07-09 02:51:35 PDT --- Fixed dmd 1.046 and 2.031 -- 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