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. } ---
Updated this to a regression after discovering that this worked with DMD 2.063.
https://github.com/dlang/dmd/pull/9073
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e1dce1a8f90aee8c6922ca12cba99cc22c4122f8 fix Issue 19227 - S.init is S.init failing for struct with float member https://github.com/dlang/dmd/commit/883b5930856756045d86382fa1eb28e205dd438e Merge pull request #9073 from WalterBright/fix19227 fix Issue 19227 - S.init is S.init failing for struct with float member