<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:andreybokhanko@gmail.com" title="Andrey Bokhanko <andreybokhanko@gmail.com>"> <span class="fn">Andrey Bokhanko</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed" title="RESOLVED WORKSFORME - clang crashes on template instation" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D16259&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=Eo_cC8Xf1VJuz11NkLR1q7uEdtan35oGMCSfrsvHLSY&s=j4U6qn7wlu8BQU8gYPtT7ZbuDHJok-MH7-YO6-aZujM&e=">bug 16259</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>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>andreybokhanko@gmail.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WORKSFORME
</td>
</tr>
<tr>
<td style="text-align:right;">Assignee</td>
<td>unassignedclangbugs@nondot.org
</td>
<td>andreybokhanko@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed" title="RESOLVED WORKSFORME - clang crashes on template instation" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D16259-23c1&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=Eo_cC8Xf1VJuz11NkLR1q7uEdtan35oGMCSfrsvHLSY&s=33s5rLLsRI-Cvk31ccZh2nK_kAFgnj16exbmyL7OxLE&e=">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed" title="RESOLVED WORKSFORME - clang crashes on template instation" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D16259&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=Eo_cC8Xf1VJuz11NkLR1q7uEdtan35oGMCSfrsvHLSY&s=j4U6qn7wlu8BQU8gYPtT7ZbuDHJok-MH7-YO6-aZujM&e=">bug 16259</a>
from <span class="vcard"><a class="email" href="mailto:andreybokhanko@gmail.com" title="Andrey Bokhanko <andreybokhanko@gmail.com>"> <span class="fn">Andrey Bokhanko</span></a>
</span></b>
<pre>As I verified, the test now compiles fine:
$ cat test.cpp
template <class T, class A>
void f() {
T *q;
q->A::~A();
}
class Q {};
int main() {
f<Q, int>();
}
$ clang test.cpp
test.cpp:4:10: error: 'int' is not a class, namespace, or enumeration
q->A::~A();
^
test.cpp:9:5: note: in instantiation of function template specialization 'f<Q,
int>' requested here
f<Q, int>();
^
1 error generated.
(clang prints errors, but this is fine, as the program is incorrect; the
problem was that clang crashed)
Yours,
Andrey Bokhanko
===============
Software Engineer
Intel Compiler Team
Intel</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>