[Issue 19235] Repeatedly calling non-pure function in non-pure literal nested in pure function is broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 8 12:45:29 UTC 2018


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

--- Comment #1 from Johannes Pfau <johannespfau at gmail.com> ---
Same problem  with static nested functions:

-------------------------------------------------
struct FloatingPointControl
{
    void foo() pure
    {
            static bool nested() {
                setControlState(0);
                setControlState(0);
                return 0;
            }
    }

private:
    static void setControlState(uint newState)
    {
    }
}
-------------------------------------------------

--


More information about the Digitalmars-d-bugs mailing list