<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:sepavloff@gmail.com" title="Serge Pavlov <sepavloff@gmail.com>"> <span class="fn">Serge Pavlov</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion `NewTemplateDecl && "Template/non-template mismatch"' failed"
href="http://llvm.org/bugs/show_bug.cgi?id=11416">bug 11416</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>sepavloff@gmail.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WORKSFORME
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion `NewTemplateDecl && "Template/non-template mismatch"' failed"
href="http://llvm.org/bugs/show_bug.cgi?id=11416#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion `NewTemplateDecl && "Template/non-template mismatch"' failed"
href="http://llvm.org/bugs/show_bug.cgi?id=11416">bug 11416</a>
from <span class="vcard"><a class="email" href="mailto:sepavloff@gmail.com" title="Serge Pavlov <sepavloff@gmail.com>"> <span class="fn">Serge Pavlov</span></a>
</span></b>
<pre>No more crash with ToT:
$ clang --version
clang version 3.7.0 (trunk 227734)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ clang pr11416.cpp
pr11416.cpp:3:17: error: templates must have C++ linkage
template <class R> class Sphere_d;
^~~~~~~~~~~~~~~~~~
pr11416.cpp:4:61: error: unknown type name 'Sphere_d'
template <class R> bool equal_as_sets(const Sphere_d<R>&, const
Sphere_d<R>&);
^
pr11416.cpp:4:69: error: expected ')'
template <class R> bool equal_as_sets(const Sphere_d<R>&, const
Sphere_d<R>&);
^
pr11416.cpp:4:54: note: to match this '('
template <class R> bool equal_as_sets(const Sphere_d<R>&, const
Sphere_d<R>&);
^
pr11416.cpp:4:17: error: templates must have C++ linkage
template <class R> bool equal_as_sets(const Sphere_d<R>&, const
Sphere_d<R>&);
^~~~~~~~~~~~~~~~~~
pr11416.cpp:5:17: error: templates must have C++ linkage
template <class R> class Sphere_d_rep {
^~~~~~~~~~~~~~~~~~
5 errors generated.
Some of the reported errors are not necessary, fix
<a href="http://reviews.llvm.org/D7321">http://reviews.llvm.org/D7321</a> solves this problem.</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>