https://issues.dlang.org/show_bug.cgi?id=18115
--- Comment #11 from Rainer Schuetze <r.sagita...@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. --