On Fri, May 30, 2014 at 3:42 PM, Nico Rieck <[email protected]> wrote:

> On 30.05.2014 23:58, Richard Smith wrote:
> > "what linkage would MSVC give to an explicit specialization of a function
> > template under normal circumstances (no dllimport/dllexport attributes)?
> > Does it treat them as mergeable, like an inline function, or as a strong
> > definition?"
>
> They get strong linkage.
>

OK, then it would seem wrong to treat them as being implicitly inline. It
seems that CodeGen (or one of the GVALinkage-related properties it asks the
ASTContext about) should detect dllimport explicit specializations,
instead, more like your original patch did. But I don't see that this
should be at all linked with the ABI -- it seems to be just a weird quirk
of the dllimport attribute?
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to