[LLVMbugs] [Bug 18685] New: weird typo correction to member of class template specialization
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jan 31 12:57:11 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18685
Bug ID: 18685
Summary: weird typo correction to member of class template
specialization
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: llvmbugs at cs.uiuc.edu, rikka at google.com
Classification: Unclassified
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.)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140131/be177768/attachment.html>
More information about the llvm-bugs
mailing list