[Issue 19903] postblit called for uninitialised elements of unions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 26 20:40:07 UTC 2019


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

--- Comment #1 from Manu <turkeyman at gmail.com> ---
Oh my, I just noticed that the DESTRUCTOR is also called for each element in
the union!
That's completely wrong, since only one item in the union may be valid at a
time.

--


More information about the Digitalmars-d-bugs mailing list