www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19227] New: `S.init is S.init` failing for structs with float


          Issue ID: 19227
           Summary: `S.init is S.init` failing for structs with float
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: n8sh.secondary 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.

Sep 05 2018