[Issue 13720] [REG2.067] Adding trivial destructor to std.datetime causes Internal error: ..\ztc\cgelem.c 2418
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jun 15 02:58:26 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=13720
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> ---
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
--
More information about the Digitalmars-d-bugs
mailing list