[LLVMbugs] [Bug 13387] New: Strange typo-correction suggestion with inheritance+using
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 17 15:17:28 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13387
Bug #: 13387
Summary: Strange typo-correction suggestion with
inheritance+using
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Testcase:
struct A {
void CreateFoo(float*, float*);
void CreateBar(float*, float*);
};
struct B : A {
using A::CreateFoo;
void CreateFoo(int*, int*);
};
void f(B &x) {
x.Createfoo(0,0);
}
<stdin>:10:5: error: no member named 'Createfoo' in 'B'; did you mean
'CreateBar'?
x.Createfoo(0,0);
^~~~~~~~~
CreateBar
<stdin>:3:8: note: 'CreateBar' declared here
void CreateBar(float*, float*);
^
I'm completely confused why typo-correction prefers CreateBar over CreateFoo.
--
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