Bug 16516 – Linker Error for ModuleInfo

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2016-09-21T00:24:15Z
Last change time
2022-06-07T16:52:41Z
Assigned to
No Owner
Creator
Jack

Attachments

IDFilenameSummaryContent-TypeSize
1615err.zipattached fileapplication/x-zip-compressed3582

Comments

Comment #0 by gyroheli — 2016-09-21T00:24:15Z
Created attachment 1615 attached file Not exactly sure why this is being caused, but I don't think it should be a linker problem. I get this linker error: Error 42: Symbol Undefined _D4test6second1t12__ModuleInfoZ I've tried to narrow it down as much as possible. Removing any import from any file in import/source/test/ seems to fix the issue.
Comment #1 by alphaglosined — 2022-06-07T16:52:41Z
ModuleInfo is used to detect cyclic detection, so importing is creating a reference to a ModuleInfo instance that simply hasn't been linked in.