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.