[PATCH] MS ABI: Treat dllimport explicit specializations as inline
Richard Smith
richard at metafoo.co.uk
Fri May 30 19:37:37 PDT 2014
On Fri, May 30, 2014 at 3:42 PM, Nico Rieck <nico.rieck at gmail.com> 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140530/4e37b270/attachment.html>
More information about the cfe-commits
mailing list