[Issue 18115] [REG2.078-b1] case where && is not shortcut anymore in CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 28 10:34:42 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=18115
--- Comment #11 from Rainer Schuetze <r.sagitario at gmx.de> ---
Short circuiting is only performed for "static if", which also works for your
test case.
The string comparison used to be converted to a runtime call, so it could not
be evaluated further (but with soe special support in CTFE). It is now a
template that can be const folded and reports the error.
--
More information about the Digitalmars-d-bugs
mailing list