Bug 16080 – [REG2.071.0] Internal error: backend\cgobj.c 3406 when building static library
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2016-05-26T21:23:00Z
Last change time
2016-10-01T11:47:13Z
Keywords
ice, ice-on-valid-code
Assigned to
nobody
Creator
sludwig
Comments
Comment #0 by sludwig — 2016-05-26T21:23:55Z
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.
Comment #1 by sludwig — 2016-05-26T21:27:53Z
Introduced in 2.071.0, still happens in 2.071.1-b1