https://issues.dlang.org/show_bug.cgi?id=19917
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from [email protected] --- I've just seen that LDC handles this differently than DMD. With LDC, an explicit initializer takes precedence, regardless of the lexical order: union S { int x; // compiler error if also explicitly initialized (except for `= void`) float y = 1.0f; } void main() { S s; assert(s.y == 1.0f); } --
