[Issue 9571] link error due to using unique ids in anonymous funcliteral

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 10 18:20:00 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9571



--- Comment #8 from Martin Nowak <code at dawg.eu> 2013-04-10 18:19:57 PDT ---
(In reply to comment #7)
> Because semantic3 on MapResult.bar() is not run during a's compilation the
> funcliteral is never referenced and missing from a.o.
> 
That was incorrect semantic3 for the function literal and MapResult.bar is run
and bar is added as a weak symbol to a.o which actually causes the link error
because the funcliteral remains undefined.

We need to fix the unique id issue for anonymous literals.
We shouldn't emit an unused template instance to a.o just because we ran
semantic3 on foo, note that foo returns void.

-- 
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