www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18496] New: Complement expressions now actually int promote


          Issue ID: 18496
           Summary: Complement expressions now actually int promote
           Product: D
           Version: D2
          Hardware: All
               URL: http://https://dlang.org/spec/expression.html#compleme
                OS: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: schveiguy yahoo.com

The spec for integer promotions currently says: "Note: the usual integral
promotions are not performed prior to the complement operation."

However, while this is currently true, it's a deprecation, and is NOT true with
the -transition=intpromote flag. This should be reflected in the spec.

Also, there are no notes for any of the other affected unary expressions about
integer promotion. Those should be added.

Feb 22 2018