November 18, 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@gdcproject.org
          Reporter: johannespfau@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.