<html>
    <head>
      <base href="http://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 --- - weird typo correction to member of class template specialization"
   href="http://llvm.org/bugs/show_bug.cgi?id=18685">18685</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>weird typo correction to member of class template specialization
          </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>Linux
          </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>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>richard-llvm@metafoo.co.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu, rikka@google.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Try adding a use of llvm::BitVector to include/clang/Lex/Preprocessor.h. See
something like this:

include/clang/Lex/Preprocessor.h:458:7: error: no type named 'BitVector' in
namespace 'llvm'; did you mean 'llvm::SmallSetVector<const FileEntry *,
2>::SetVector'?
      llvm::BitVector Map;
      ^~~~~~~~~~~~~~~
      llvm::SmallSetVector<const FileEntry *, 2>::SetVector

That's a surprising correction!

It seems really weird that Clang has guessed not only an (incorrect) typo
correction, but also guessed some template arguments (though I can see how we'd
have done this)!

(More generally, correcting both the name and adding a missing
nested-name-specifier seems like a really-low-confidence correction, and not
one that we should be giving a fix-it for, nor using in error recovery.)</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>