[Issue 11284] add -allinst compiler switch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 20 02:08:34 PDT 2013


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



--- Comment #7 from jfanatiker at gmx.at 2013-10-20 02:01:54 PDT ---
> Currently D spec does not allow any symbol visibility optimizations. The fact
> that symbol X is used only during CTFE during compilation of module A does not
> mean it won't be used in runtime from module B. Or even linked dynamically. Any
> really clever stuff can be done here only after specification is restricted.

I don't really get this. I am not talking about omitting regular functions
which are only used during CTFE in a module, because obviously the function
might be of use at runtime from within another module. But why do we put a
template instantiation in a.obj that never really got instantiated? If b.d uses
it, it should go to b.obj just as if a.d would not have used it at all.

I don't get why the use in CTFE triggers template instantiations.

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