<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Typo correction blocks template argument correction suggestions"
href="https://bugs.llvm.org/show_bug.cgi?id=41715">41715</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Typo correction blocks template argument correction suggestions
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rnk@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Consider:
-------
$ cat t.cpp
struct DIBuilder;
template <typename T = int>
struct IRBuilder {
};
void foo() {
IRBuilder obj;
}
$ clang -c t.cpp
t.cpp:4:3: error: unknown type name 'IRBuilder'; did you mean 'DIBuilder'?
IRBuilder obj;
^~~~~~~~~
DIBuilder
t.cpp:1:8: note: 'DIBuilder' declared here
struct DIBuilder {};
^
1 error generated.
$ clang -c t.cpp -fno-spell-checking
t.cpp:4:3: error: use of class template 'IRBuilder' requires template arguments
IRBuilder obj;
^
t.cpp:2:36: note: template is declared here
template <typename T = int> struct IRBuilder {};
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
1 error generated.
------
If the identifier being corrected directly matches a template, it seems more
likely that it's supposed to have template arguments.</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>