https://issues.dlang.org/show_bug.cgi?id=19685

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from [email protected] ---
https://run.dlang.io/is/p9cpXq:

```
struct S
{
    union
    {
        struct { int a = 123; }
        struct { int b = 456; }
    }
}

void main()
{
    S s;
    assert(s.b == 123);
}
```

Compiles successfully with 2.085.0-beta1, earlier versions rightfully complain:

Error: overlapping default initialization for field b and a
Error: overlapping default initialization for field a and b

--

Reply via email to