[Issue 15828] DMD should refuse comparing unions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 30 16:01:23 UTC 2021


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
@teodutu created dlang/dmd pull request #12937 "[DSSv3] Fix Issue 15828 - DMD
should refuse comparing unions" fixing this issue:

- Fix Issue 15828 - DMD should refuse comparing unions

  Changes:
  - Add check in `dmd/opover.d` to verify if the compared structs are
  unions and output an error if the check passes
  - Verify the error by `tests/fail_compilation/test15828.d`
  - Add `changelog/union-comparison.dd` to explain these changes

https://github.com/dlang/dmd/pull/12937

--


More information about the Digitalmars-d-bugs mailing list