[Issue 16080] New: Internal error: backend\cgobj.c 3406 when building static library
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu May 26 14:23:55 PDT 2016
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: nobody at puremagic.com
Reporter: sludwig at 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.
--
More information about the Digitalmars-d-bugs
mailing list