[Issue 13601] static if (__ctfe) should emit warning

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Oct 18 12:04:14 PDT 2014


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.

--


More information about the Digitalmars-d-bugs mailing list