[Issue 19227] New: `S.init is S.init` failing for structs with float member

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 5 19:40:22 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19227

          Issue ID: 19227
           Summary: `S.init is S.init` failing for structs with float
                    member
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: n8sh.secondary at hotmail.com

On top of that there seems to be discrepancies between different platforms,
seen in https://github.com/dlang/phobos/pull/6693 passing the autotests on some
platforms but not others.

---
struct S
{
    float f;
}

void main()
{
    static assert(S.init is S.init); // Fails on code.dlang.io.
    assert(S.init is S.init); // Passes if you comment out the above.
}
---

--


More information about the Digitalmars-d-bugs mailing list