[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
Fri Sep 11 06:12:25 UTC 2020


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

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #11718 "merge stable" was merged into master:

- f602545af9c0db08b70a8ff2372515416c1a2d2a by Paul Backus:
  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/11718

--


More information about the Digitalmars-d-bugs mailing list