<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Spell checking makes diagnostic worse when forgetting template parameters on a template"
href="https://llvm.org/bugs/show_bug.cgi?id=26641">26641</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Spell checking makes diagnostic worse when forgetting template parameters on a template
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nicolasweber@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>This is is a good experience:
$ cat test.cc
#include <vector>
void f() {
std::vector v;
}
$ clang -c test.cc
test.cc:4:8: error: use of class template 'std::vector' requires template
arguments
std::vector v;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:477:29:
note: template is declared here
class _LIBCPP_TYPE_VIS_ONLY vector
^
1 error generated.
This isn't:
$ cat test.cc
#include <ratio>
#include <vector>
void f() {
std::vector v;
}
$ clang -c test.cc
test.cc:5:8: error: no type named 'vector' in namespace 'std'; did you mean
'hecto'?
std::vector v;
~~~~~^~~~~~
hecto
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ratio:265:43:
note: 'hecto' declared here
typedef ratio< 100LL, 1LL> hecto;
^
1 error generated.
We probably should prefer the original diagnostic if there's a template with an
edit distance of 0 that's just missing the type parameters.</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>