[Issue 21198] Inout copy constructor on union field does not prevent copy-initialization of union
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 27 23:14:49 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21198
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@pbackus created dlang/dmd pull request #11634 "Fix issue 21198 - Inout copy
constructor on union field does not prev…" fixing this issue:
- Fix issue 21198 - Inout copy constructor on union field does not prevent
copy-initialization of union
Previously, generated copy constructors of unions were disabled only if
they failed to type-check. They are now disabled in all cases, as
required by the language spec.
https://github.com/dlang/dmd/pull/11634
--
More information about the Digitalmars-d-bugs
mailing list