[Issue 10920] template instantiation order dependent link failure problem

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 24 09:53:42 PDT 2013


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


Dicebot <public at dicebot.lv> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |public at dicebot.lv


--- Comment #3 from Dicebot <public at dicebot.lv> 2013-09-24 09:53:39 PDT ---
I think it was already discussed in that Walters pull request and rejected as
invalid. If `foo.d` imports `bar.d` it MUST also compile `bar.d` too and link
into the final application.

In provided snippet `FormatSpec!char` should always be expected to be in
`bar.d` during separate compilation. It may also be _additionally_ emitted to
`foo.d` as a weak symbol if `foo.d` code flow runs semantic on it first, but
that will be taken care of by linker.

D does not have headers, every single module is expected to be compiled and
linked.

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