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

ag0aep6g <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from ag0aep6g <[email protected]> ---
(In reply to Mike Franklin from comment #3)
> I can reproduce this at run.dlang.io, but I can't reproduce it locally from
> DMD-Head (Linux 64-bit).

I can reproduce it just fine on Linux with DMD64 D Compiler
v2.080.0-166-g235e5b500 (i.e. git master).

Crashes with:

    core.exception.AssertError@dmd/dinterpret.d(4834): Assertion failure

That's here:
<https://github.com/dlang/dmd/blob/235e5b50052b3910fec36cb949cc43502267ea82/src/dmd/dinterpret.d#L4834>.

Also, reduced test case:

----
struct Problem
{
    ~this() {}
}
struct S
{
    Problem[1] payload;
}
enum theTemplateB = {
    static foreach (e; S.init.tupleof) {}
    return true;
}();
----

--

Reply via email to