[Issue 14835] Constant folding should not affect front end flow analysis

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 29 02:05:27 UTC 2021


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

deadalnix <deadalnix at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |deadalnix at gmail.com

--- Comment #12 from deadalnix <deadalnix at gmail.com> ---
(In reply to Andrei Alexandrescu from comment #10)
> One simple possibility here is to automatically insert `else` whenever the
> `static if` branch does not fall through

This is the most underrated comment of the thread ^

I actually implemented this in SDC, and it makes a HUGE difference.

--


More information about the Digitalmars-d-bugs mailing list