[Issue 18819] DMD compilation crash

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 20 21:12:23 UTC 2018


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

ag0aep6g <ag0aep6g at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g at gmail.com

--- Comment #4 from ag0aep6g <ag0aep6g at gmail.com> ---
(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 at 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;
}();
----

--


More information about the Digitalmars-d-bugs mailing list