[Issue 16997] Integral promotion rules not being followed for negation expressions

2017-07-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16997

Walter Bright  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=5132

--


[Issue 16997] Integral promotion rules not being followed for negation expressions

2017-07-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16997

--- Comment #8 from Walter Bright  ---
Note that the spec says:

"Note: unlike in C and C++, the usual integral promotions are not performed
prior to the complement operation."

  http://dlang.org/spec/expression.html#complement_expressions

And the spec says nothing about unary - or unary +.

  http://dlang.org/spec/expression.html#unary-expression

--


[Issue 16997] Integral promotion rules not being followed for negation expressions

2017-07-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16997

--- Comment #7 from Walter Bright  ---
Unary + and unary ~ are also broken in the same way.

--


[Issue 16997] Integral promotion rules not being followed for negation expressions

2017-07-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16997

--- Comment #6 from Walter Bright  ---
*** Issue 17637 has been marked as a duplicate of this issue. ***

--