[LLVMbugs] [Bug 16540] New: push_back of ASTVector is called with too few arguments

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 4 02:31:16 PDT 2013


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

            Bug ID: 16540
           Summary: push_back of ASTVector is called with too few
                    arguments
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: boroknagyz at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

in the definition of ASTVector::insert(ASTContext &C, iterator I, const T &Elt)
the push_back member funcion is called with only one argument when it expects
two.

This causes a compile-time error when the insert member is instantiated.

It also causes an assertion failure in AST/Expr.h:2141: clang::Expr*
clang::CallExpr::getArg(unsigned int): Assertion `Arg < NumArgs && "Arg access
out of range!"' failed. This is a non-recoverable error when we parse our code
base with our RecursiveASTVisitor (is there any workaround on that?).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130704/e031d81b/attachment.html>


More information about the llvm-bugs mailing list