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

--- Comment #1 from Vladimir Panteleev <[email protected]> ---
I have reduced the above to the following code:

//////////// test.d ////////////
struct S
{
    this(int) { }

    bool okToDestroy;

    ~this()
    {
        assert(okToDestroy);
    }
}

S[string] aa;

void main()
{
    aa[null] = S(42);
    aa[null].okToDestroy = true;
}
////////////////////////////////

But this reduction does not manifest as a regression.

--

Reply via email to