digitalmars.D.bugs - [Issue 22988] New: Error: shift by -1 is outside the range `0..31`
- d-bugmail puremagic.com (21/21) Apr 04 2022 https://issues.dlang.org/show_bug.cgi?id=22988
https://issues.dlang.org/show_bug.cgi?id=22988 Issue ID: 22988 Summary: Error: shift by -1 is outside the range `0..31` Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: maxsamukha gmail.com enum a = 0; enum b = a ? 1 << a - 1 : 0; void main() { } Error: shift by -1 is outside the range `0..31` --
Apr 04 2022