Thread overview
[Issue 6949] no warning or error if unsigned variable is compared to
May 21, 2014
Lionello Lunesu
[Issue 6949] no warning or error if unsigned variable is compared to 0
Dec 17, 2022
Iain Buclaw
Feb 02, 2023
RazvanN
May 21, 2014
https://issues.dlang.org/show_bug.cgi?id=6949

--- Comment #18 from Lionello Lunesu <lio+bugzilla@lunesu.com> ---
*** Issue 8874 has been marked as a duplicate of this issue. ***

--
May 21, 2014
https://issues.dlang.org/show_bug.cgi?id=6949

--- Comment #19 from bearophile_hugs@eml.cc ---
(In reply to Lionello Lunesu from comment #18)
> *** Issue 8874 has been marked as a duplicate of this issue. ***

Issue 8874 shows an extensive example of why this warning is quite important.

--
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=6949

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|D1 & D2                     |D2

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=6949

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

--
February 02, 2023
https://issues.dlang.org/show_bug.cgi?id=6949

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WONTFIX

--- Comment #20 from RazvanN <razvan.nitu1305@gmail.com> ---
Implementing what is asked in this bug report leads to code breakage (assuming we issue an error and not a warning) of otherwise valid code. Walter opposed this in the PR so I am going to close this as WONTFIX.

--