[llvm-bugs] [Bug 28270] New: Regression (r273456): Assertion `(!Node || ResNo < Node->getNumValues()) && "Invalid result number for the given node!"' failed

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 22 16:57:38 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28270

            Bug ID: 28270
           Summary: Regression (r273456): Assertion `(!Node || ResNo <
                    Node->getNumValues()) && "Invalid result number for
                    the given node!"' failed
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: peter at pcc.me.uk
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

(reduced from chromium/src/third_party/flatbuffers/src/src/idl_gen_text.cpp)

$ cat foo.ii 
class A {
  A(const char *);

public:
  void operator+=(const char *p1) { m_fn1(p1); }
  void m_fn1(A);
};

class B {
public:
  double operator[](unsigned);
};
template <typename T> void Print(T p1, int, int, int *, int, A *p6) {
  A text = *p6;
  text += p1 ? "" : "false";
}

void PrintVector() {
  A *_text;
  int opts, indent, type;
  B v;
  for (int i;;)
    Print(v[i], type, indent, nullptr, opts, _text);
}

$ clang++ -O2  -g2 -w -std=gnu++11 -c foo.ii 
clang-3.9: ../include/llvm/CodeGen/SelectionDAGNodes.h:860:
llvm::SDValue::SDValue(llvm::SDNode *, unsigned int): Assertion `(!Node ||
ResNo < Node->getNumValues()) && "Invalid result number for the given node!"'
failed.

-- 
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/20160622/fc592190/attachment.html>


More information about the llvm-bugs mailing list