[Issue 365] New: Regression: Bad code generation for floating point == and !=
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 24 11:52:11 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=365
Summary: Regression: Bad code generation for floating point ==
and !=
Product: D
Version: 0.167
Platform: PC
OS/Version: Windows
Status: NEW
Severity: critical
Priority: P1
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: clugdbug at yahoo.com.au
NaNs are currently comparing equal to zero!
>, >=, !<>=, etc all seem to be OK.
-------
void main()
{
real x = real.nan;
assert( x!=0 ); // fails
if (x==0) assert(0); // fails
}
--
More information about the Digitalmars-d-bugs
mailing list