[Bug 309] New: IdentityExp for complex floating point types is broken
gdc-bugzilla at gdcproject.org
gdc-bugzilla at gdcproject.org
Sun Nov 18 10:42:10 UTC 2018
https://bugzilla.gdcproject.org/show_bug.cgi?id=309
Bug ID: 309
Summary: IdentityExp for complex floating point types is broken
Product: GDC
Version: development
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Normal
Component: gdc
Assignee: ibuclaw at gdcproject.org
Reporter: johannespfau at gmail.com
It is actually not implemented at all and all c1 is c2 comparisons return true,
as this is lowered to a memcmp with length 0.
----------------------------
creal f1 = +0.0 + 0.0i;
creal f2 = +0.0 - 0.0i;
creal f3 = -0.0 + 0.0i;
creal f4 = +0.0 + 0.0i;
assert(f1 !is f2);
assert(f1 !is f3);
assert(f2 !is f3);
assert(f1 is f4);
assert(!(f1 is f2));
assert(!(f1 is f3));
assert(!(f2 is f3));
assert(!(f1 !is f4));
----------------------------
--
You are receiving this mail because:
You are watching all bug changes.
More information about the D.gnu
mailing list