[PATCH] D51340: Add /Zc:DllexportInlines option to clang-cl
Hans Wennborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 31 02:53:53 PDT 2018
hans added inline comments.
================
Comment at: clang/lib/AST/ASTContext.cpp:9552
+ // overwrite linkage of explicit template instantiation
+ // definition/declaration.
+ return GVA_DiscardableODR;
----------------
takuto.ikuta wrote:
> takuto.ikuta wrote:
> > hans wrote:
> > > Can you give an example for why this is needed?
> > Sorry, this change does not need. Removed.
> Sorry, this change is necessary still.
>
> Without this, definition of inline function in explicit template instantiation declaration is not be emitted, due to GVA_AvailableExternally linkage.
> But we stop exporting definition of inline function in explicit template instantiation definition too.
>
> So without this, definition of dllimported inline function of explicit template instantiation declaration won't be available.
>
Can you provide a code example of why this is needed?
https://reviews.llvm.org/D51340
More information about the cfe-commits
mailing list