[Issue 23181] [REG 2.099] AssertError at src/dmd/e2ir.d(6094): Trying reference _d_arraysetctor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 13 15:39:27 UTC 2022


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

--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
The correct behaviour would be:
---
void main()
{
    int count;
    {
        struct hasDtor
        {
            ~this() { ++count; }
        }
        hasDtor[4] arr4 = hasDtor();
        assert(count == 1);
    }
    assert(count == 5);
}
---

--


More information about the Digitalmars-d-bugs mailing list