[PATCH] D61118: [MinGW] Fix dllexport of explicit template instantiation
Martin Storsjö via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 25 00:20:00 PDT 2019
mstorsjo created this revision.
mstorsjo added reviewers: rnk, hans, smeenai.
Herald added a project: clang.
Contrary to MSVC, GCC/MinGW needs to have the dllexport attribute on the template instantiation declaration, not on the definition.
Previously clang never marked explicit template instantiations as dllexport in MinGW mode, regardless of where the attribute was placed. This makes Clang behave like GCC in this regard, and allows using the same attribute form for both MinGW compilers.
This fixes PR40256.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8601 bytes
Desc: not available
More information about the cfe-commits