https://issues.dlang.org/show_bug.cgi?id=13601 --- Comment #6 from Martin Nowak <code at dawg.eu> --- Mmh, this happens because the static if expression is now handled by CTFE instead of constant folding. CTFE would need to look at the scope flags to check whether __ctfe can be read. --