[Issue 17622] [REG2.075.0-b1] Wrong code with appender and -inline

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 14 21:17:52 PDT 2017


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

--- Comment #6 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
Reduced:

//////// test.d ///////
struct S
{
    int i;

    this(ubyte)
    {
        return;
    }

    void fun()
    {
        assert(i == 0);
    }
}

S make()
{
    return S(0);
}

void main()
{
    S s = make();

    auto rdg =
    {
        s.fun();
    };

    s.fun();
}
///////////////////////

--


More information about the Digitalmars-d-bugs mailing list