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
Comment #2 by bugzilla — 2016-06-01T06:16:38Z
Comment #3 by github-bugzilla — 2016-06-01T12:45:06Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/4d867e5f41bed2593d75043a09d7b5f9b432e2db fix Issue 16080 - [REG2.071.0] Internal error: backend\cgobj.c 3406 when building static library https://github.com/dlang/dmd/commit/a80eb25ff46d92d17eecd8dd69739c6a892c9d52 Merge pull request #5828 from WalterBright/fix16080 fix Issue 16080 - [REG2.071.0] Internal error: backend\cgobj.c 3406 w…
Comment #4 by github-bugzilla — 2016-06-01T15:29:04Z
Commit pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/82c3dfb0e58f52e98ef131f9c4bb1c3c00e22939 Merge pull request #5828 from WalterBright/fix16080 fix Issue 16080 - [REG2.071.0] Internal error: backend\cgobj.c 3406 w…
Comment #5 by github-bugzilla — 2016-08-01T19:54:29Z
Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/82c3dfb0e58f52e98ef131f9c4bb1c3c00e22939 Merge pull request #5828 from WalterBright/fix16080
Comment #6 by github-bugzilla — 2016-10-01T11:47:13Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/4d867e5f41bed2593d75043a09d7b5f9b432e2db fix Issue 16080 - [REG2.071.0] Internal error: backend\cgobj.c 3406 when building static library https://github.com/dlang/dmd/commit/a80eb25ff46d92d17eecd8dd69739c6a892c9d52 Merge pull request #5828 from WalterBright/fix16080