digitalmars.D.bugs - [Issue 19227] New: `S.init is S.init` failing for structs with float
- d-bugmail puremagic.com (29/29) Sep 05 2018 https://issues.dlang.org/show_bug.cgi?id=19227
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 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