http://d.puremagic.com/issues/show_bug.cgi?id=9470
Summary: Missing symbols in object file if template
instantiated inside `with`
Product: D
Version: D2
Platform: All
OS/Version: Windows
Status: NEW
Keywords: link-failure
Severity: critical
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Denis Shelomovskij <[email protected]> 2013-02-07
23:15:22 MSK ---
---
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?).
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------