https://issues.dlang.org/show_bug.cgi?id=16080
Issue ID: 16080 Summary: Internal error: backend\cgobj.c 3406 when building static library Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: slud...@outerproduct.org Taking the following three modules: a.d: --- struct A() { static immutable A a; } --- b1.d --- import a; --- b2.d --- import a; void test2() { A!() v = A!().a; } --- Running "dmd -lib b1.d b2.d" results in: Internal error: backend\cgobj.c 3406 Changing the order or taking away either b1.d or b2.d from the command line will make the build succeed. --