[LLVMbugs] [Bug 7508] New: Typo correction corrupts reported member names in the presence of a type member

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jun 26 12:53:53 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7508

           Summary: Typo correction corrupts reported member names in the
                    presence of a type member
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rjmccall at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


struct A {
  struct CleanupScope {};
  void PopCleanupBlock();
};

void foo(A &a) {
  a.PopCleanupScope();
}

daysthatwere:clang rjmccall$ clang++ /tmp/red3.cpp 
/tmp/red3.cpp:7:5: error: no member named 'CleanupScope' in 'A'
  a.PopCleanupScope();
  ~ ^
1 error generated.

I'm assuming that typo correction picks the type name, changes the
DeclarationName, somehow fails to report a "this is what I'm doing" error, and
then doesn't modify the lookup result?

-- 
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