<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Regression (r273456): Assertion `(!Node || ResNo < Node->getNumValues()) && "Invalid result number for the given node!"' failed"
href="https://llvm.org/bugs/show_bug.cgi?id=28270">28270</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Regression (r273456): Assertion `(!Node || ResNo < Node->getNumValues()) && "Invalid result number for the given node!"' failed
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Common Code Generator Code
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>peter@pcc.me.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>(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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>