[Issue 23172] [REG2.100] Wrong cast inserted for ternary operator and non-int enums

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 15 18:50:00 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23172

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl

--- Comment #2 from Dennis <dkorpel at live.nl> ---
Introduced by https://github.com/dlang/dmd/pull/13961

```
digger: 220aedbd1c5c102d26967be5706d5fe8f689a56c is the first bad commit
commit 220aedbd1c5c102d26967be5706d5fe8f689a56c
Author: Boris Carvajal <boris2.9 at gmail.com>
Date:   Thu Apr 7 04:40:23 2022 -0400

    dmd: Fix Issue 22988 - no short-circuiting when constant folding ternary
operator
```

--


More information about the Digitalmars-d-bugs mailing list