https://issues.dlang.org/show_bug.cgi?id=19079
Simen Kjaeraas <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |spec --- Comment #1 from Simen Kjaeraas <[email protected]> --- As mentioned in issue 19122, and quoting from https://github.com/dlang/dmd/pull/5830: "Unrestricted unions can have fields that have destructors, postblits, or invariants. It's up to the user to call them correctly, the compiler does not automatically generate calls to them." So this is actually expected behavior in unions, and the spec is wrong. --
