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

--- Comment #4 from Kenji Hara <[email protected]> ---
Strip off dependencies to phobos/druntime.

struct FracSec
{
    this(int hnsecs) {}
}

struct SysTime
{
    this(TimeOfDay dateTime, FracSec fracSec) { }
}

struct TimeOfDay
{
    ~this() { }
}

void assertThrown(T)(lazy T) {}

void main()
{
    assertThrown(SysTime(TimeOfDay.init, FracSec(-1)));
}

With git-head:

$ dmd -O test
DMD v2.068 DEBUG
Internal error: backend\cgelem.c 2412

--

Reply via email to