[Issue 9470] New: Missing symbols in object file if template instantiated inside `with`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 7 12:15:23 PST 2013
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: nobody at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list