http://d.puremagic.com/issues/show_bug.cgi?id=7591
Summary: Wrong const-folding comparisons involving complex nans
Product: D
Version: D1 & D2
Platform: All
OS/Version: All
Status: NEW
Keywords: wrong-code
Severity: major
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from yebblies <[email protected]> 2012-02-27 03:07:26 EST ---
When compiled with -inline, the backend will attempt to const-fold the
comparison and get the wrong result.
cfloat get() { return cfloat.nan; }
void main()
{
assert(!(get() == 0));
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------