Bug 9470 – Missing symbols in object file if template instantiated inside `with`
Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2013-02-07T12:15:00Z
Last change time
2013-02-07T12:17:09Z
Keywords
link-failure
Assigned to
nobody
Creator
verylonglogin.reg
Comments
Comment #0 by verylonglogin.reg — 2013-02-07T12:15:22Z
---
enum E { x }
void g(T)() { }
void main()
{
with(E) g!int();
}
---
OPTLINK output:
---
OPTLINK (R) for Win32 Release 8.00.12
...
Error 42: Symbol Undefined _D4main9__T1gTAiZ1gFNaNbNfAiZE4main1E
---
The source of such link failures is not just unexpected and hard to reduce. Worst of all one will likely think this is one of "unfixable" OPTLINK buffer overflow bugs making D unusable on Windows (or is it a cross-platform issue?).
Comment #1 by andrej.mitrovich — 2013-02-07T12:17:09Z
*** This issue has been marked as a duplicate of issue 8414 ***