Bug 19227 – S.init is S.init failing for struct with float member

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-09-05T19:40:22Z
Last change time
2018-12-16T20:53:44Z
Assigned to
No Owner
Creator
Nathan S.

Comments

Comment #0 by n8sh.secondary — 2018-09-05T19:40:22Z
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. } ---
Comment #1 by n8sh.secondary — 2018-10-30T20:39:27Z
Updated this to a regression after discovering that this worked with DMD 2.063.
Comment #2 by bugzilla — 2018-12-13T09:01:27Z
Comment #3 by github-bugzilla — 2018-12-16T20:53:38Z
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