[LLVMbugs] [Bug 12608] New: Duplicated visit to CXXBaseSpecifier

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 20 18:16:27 PDT 2012


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

             Bug #: 12608
           Summary: Duplicated visit to CXXBaseSpecifier
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chenyang at cs.utah.edu
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Given the code below:

class BBB;
class AAA {};
class BBB : public AAA {};

the AAA base specifier will be visited twice with VisitRecordTypeLoc. 

Seems it's caused by a bug in
RecursiveASTVisitor<Derived>::TraverseCXXRecordHelper in the
RecursiveASTVisitor.h file. 

Instead of checking if a CXXRecordDecl has any definition, we might want to use
isCompleteDefinition there.

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