www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17417] New: Give error for signed integer promotions in

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 puremagic.com
          Reporter: dfj1esp02 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.

--
May 22