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

Iain Buclaw <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Iain Buclaw <[email protected]> ---
(In reply to yebblies from comment #2)
> The way to make this precisely defined is to put it in the spec and test
> suite, not to move the lowering into the frontend.  Lowering early is not
> without downsides.

In some cases, yes.  But in this instance, I don't think so.

After we've verified condition->toBoolean() the only other time semantic
analysis is done on the condition is for optimizations.  And I seriously doubt
that we are likely going to get any meaningful constant literal optimized out
from any of these types.

--

Reply via email to