<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:hans@chromium.org" title="Hans Wennborg <hans@chromium.org>"> <span class="fn">Hans Wennborg</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED " title="REOPENED --- - Clang fails to dllexport explicit class template specialization definition with previous explicit template specialization declaration" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23667&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=m_TgNI5e5E4UnJBHWZoyaEXrBILx6OzUN3Fv4yCjMGs&s=4VphuXskoKExaahlOi-Dv3H5pk17SH68PWNSHA0t81o&e=">bug 23667</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>FIXED
</td>
<td>---
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED " title="REOPENED --- - Clang fails to dllexport explicit class template specialization definition with previous explicit template specialization declaration" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23667-23c2&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=m_TgNI5e5E4UnJBHWZoyaEXrBILx6OzUN3Fv4yCjMGs&s=0BICZoRDEJfMEt-VP-tSkvSkYJXsFs5yh_lpkslB8RQ&e=">Comment # 2</a>
on <a class="bz_bug_link
bz_status_REOPENED " title="REOPENED --- - Clang fails to dllexport explicit class template specialization definition with previous explicit template specialization declaration" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23667&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=m_TgNI5e5E4UnJBHWZoyaEXrBILx6OzUN3Fv4yCjMGs&s=4VphuXskoKExaahlOi-Dv3H5pk17SH68PWNSHA0t81o&e=">bug 23667</a>
from <span class="vcard"><a class="email" href="mailto:hans@chromium.org" title="Hans Wennborg <hans@chromium.org>"> <span class="fn">Hans Wennborg</span></a>
</span></b>
<pre>We still fail in some situations:
template <typename T> struct S {
S(const S&) {};
void f() {};
};
extern template struct S<int>;
void use(S<int>& s) {
S<int> t(s);
s.f();
}
template struct __declspec(dllexport) S<int>;
In the example above, where S::f and S::S are referenced before the explicit
instantiation definition, S::f gets exported but S::S doesn't for some reason.
If use() is moved to after the explicit instantiation definition, both members
are exported.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>