Thread overview
[Issue 17602] improve message for deprecated enum comparison
Jul 06, 2017
Vladimir Panteleev
Jun 14, 2018
RazvanN
Jun 15, 2018
Mario Kroeplin
Jun 19, 2018
RazvanN
July 06, 2017
https://issues.dlang.org/show_bug.cgi?id=17602

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--
June 14, 2018
https://issues.dlang.org/show_bug.cgi?id=17602

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
Can you please offer a test case?

--
June 15, 2018
https://issues.dlang.org/show_bug.cgi?id=17602

--- Comment #2 from Mario Kroeplin <kroeplin.d@googlemail.com> ---
It is no longer a deprecation warning but an error message. The error message, however, is still misleading:

---

module a;

enum Status { on }

---

module b;

import a;

enum Status { off }

void main()
{
    Status status = a.Status.on;
}

---

> dmd a.d b.d
Error: cannot implicitly convert expression cast(Status)0 of type Status to
Status

--
June 19, 2018
https://issues.dlang.org/show_bug.cgi?id=17602

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
PR : https://github.com/dlang/dmd/pull/8376/files

--
June 19, 2018
https://issues.dlang.org/show_bug.cgi?id=17602

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/cf518513a2e12eb5e596329e6fa7f692aa978bc2 Fix Issue 17602 - improve message for deprecated enum comparison

https://github.com/dlang/dmd/commit/75d8f820247d2bfc42d36b56cae77b9b6aff88dd Merge pull request #8376 from RazvanN7/Issue_17602

Fix Issue 17602 - improve message for deprecated enum comparison

--
June 19, 2018
https://issues.dlang.org/show_bug.cgi?id=17602

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--