[LLVMbugs] [Bug 23770] New: Propagating dll attributes to template bases doesn't work for explicit instantiation
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jun 5 13:17:43 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23770
Bug ID: 23770
Summary: Propagating dll attributes to template bases doesn't
work for explicit instantiation
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: hans at chromium.org
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Blocks: 13707
Classification: Unclassified
Consider:
template <typename T> struct BaseTemplate {
void f() {}
};
template <typename T> struct Template : BaseTemplate<T> {
};
extern template struct Template<int>;
template struct __declspec(dllexport) Template<int>;
MSVC will export BaseTemplate<int>::f() here, but clang-cl fails to do so.
(This is really just another aspect of Issue 23667.)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150605/70d6eec0/attachment.html>
More information about the llvm-bugs
mailing list