[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


             Bug #: 13387
           Summary: Strange typo-correction suggestion with
           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


struct A {
  void CreateFoo(float*, float*);
  void CreateBar(float*, float*);
struct B : A {
  using A::CreateFoo;
  void CreateFoo(int*, int*);
void f(B &x) {

<stdin>:10:5: error: no member named 'Createfoo' in 'B'; did you mean
<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