[LLVMbugs] [Bug 13034] New: Surprising-but-correct typo correction with single-colon typo in qualified name lookup
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jun 5 14:53:08 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13034
Bug #: 13034
Summary: Surprising-but-correct typo correction with
single-colon typo in qualified name lookup
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Keywords: quality-of-implementation
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Clang is totally correct here:
t.cpp:4:7: error: no template named 'vector'; did you mean 'std::vector'?
std:vector<int> v;
^~~~~~
std::vector
/usr/include/c++/4.2.1/bits/stl_vector.h:162:11: note: 'std::vector' declared
here
class vector : protected _Vector_base<_Tp, _Alloc>
^
and yet I am unsatisfied.
Ideally, we'd realize that this is a typo of a single colon rather than a
double colon, and not the user attempting to create a label 'std' followed by
an unqualified reference to 'vector'.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list