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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Oct 18 08:53:06 PDT 2014


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

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3
                 CC|                            |code at dawg.eu
           Severity|enhancement                 |regression

--- Comment #3 from Martin Nowak <code at dawg.eu> ---
This worked as expected 2.063.2.

cat > bug.d << CODE
void foo()
{
    static if (__ctfe) {}
}
CODE

dmd -c bug
----
bug.d(3): Error: variable __ctfe cannot be read at compile time
----

--


More information about the Digitalmars-d-bugs mailing list