May 22, 2017 [Issue 17417] New: Give error for signed integer promotions in bitwise operations | ||||
---|---|---|---|---|
| ||||
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. -- |
Copyright © 1999-2021 by the D Language Foundation