[Issue 17417] New: Give error for signed integer promotions in bitwise operations

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 22 05:15:29 PDT 2017


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

          Issue ID: 17417
           Summary: Give error for signed integer promotions in bitwise
                    operations
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: spec
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dfj1esp02 at sneakemail.com

Signed integers - byte and short - are promoted to int in bitwise operations
which doesn't make much sense and is bug prone. Also true for promotion from
int to long in binary bitwise operations.

--


More information about the Digitalmars-d-bugs mailing list