[LLVMbugs] [Bug 6740] New: ast-print-xml: clang: DocumentXML.cpp:51: clang::DocumentXML& clang::DocumentXML::toParent(): Assertion `NodeStack.size() > 1 && "too much backtracking"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 29 19:41:50 PDT 2010


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

           Summary: ast-print-xml: clang: DocumentXML.cpp:51:
                    clang::DocumentXML& clang::DocumentXML::toParent():
                    Assertion `NodeStack.size() > 1 && "too much
                    backtracking"' failed
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: tom.prince at ualberta.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


In DocumentXML::finalize, during the loop over BasicTypes, some types (it
appears that these are all duplicates) fail to print, and so the toParent()
prematurely closes the <Types> and potentially the <ReferenceSection> tags, and
so causes an assert in the final toParents.

To reproduce: (with 2.7-pre1)
clang -cc1 -ast-print-xml tools/clang/test/Coverage/ast-printing.cpp

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