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: [email protected]
Reporter: [email protected]
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.
--