[Issue 18871] DMD "illegal hardware instruction" crash

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 18 14:24:01 UTC 2018


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

--- Comment #3 from Mike Franklin <slavo5150 at yahoo.com> ---
Test case without dependency on std.experiment.allocator:

struct S 
{
    ~this(){}   
}

bool f()
{
    try
    {
        return true;
    }
    finally
    {
        _ArrayDtor([S(), S()]);
    }
}

void main()
{
    enum b = f();
}

--


More information about the Digitalmars-d-bugs mailing list