Thread overview
[Issue 21610] Constant folding should not raise errors for dead branches in ternary operator
Dec 17, 2022
Iain Buclaw
February 04, 2021
https://issues.dlang.org/show_bug.cgi?id=21610

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg
            Summary|CTFE should not evaluate    |Constant folding should not
                   |both branches for ?:        |raise errors for dead
                   |operator                    |branches in ternary
                   |                            |operator

--
February 04, 2021
https://issues.dlang.org/show_bug.cgi?id=21610

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #1 from moonlightsentinel@disroot.org ---
The code never reaches CTFE because the error is raised in `constfold.d` during semantic2

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=21610

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--