Thread overview
[Issue 12088] Bugs caused by using logical 'and' instead of bitwise 'and'
Dec 17, 2022
Iain Buclaw
Jun 29, 2023
RazvanN
Jun 29, 2023
Nick Treleaven
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=12088

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--
June 29, 2023
https://issues.dlang.org/show_bug.cgi?id=12088

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

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

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
Unfortunately, there is nothing the compiler can do in this situation, since that is valid code. This could be a check that a tool using the compiler as a library could implement.

--
June 29, 2023
https://issues.dlang.org/show_bug.cgi?id=12088

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org

--- Comment #2 from Nick Treleaven <nick@geany.org> ---
`some_integer && int_literal` could be made an error.

--