digitalmars.D.bugs - [Issue 23990] New: constant folding of integer casts not always
- d-bugmail puremagic.com (20/20) Jun 13 2023 https://issues.dlang.org/show_bug.cgi?id=23990
https://issues.dlang.org/show_bug.cgi?id=23990 Issue ID: 23990 Summary: constant folding of integer casts not always happening in front end Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: bugzilla digitalmars.com It gets deferred until conversion to the intermediate code, unless CTFE is also run. This causes: 1. some inconsistencies in the expressions after semantic analysis 2. some high level optimizations to be missed 3. constant folding passes to get unnecessarily re-run --
Jun 13 2023