<html>
<head>
<base href="http://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 --- - clang++ 3.4 crash: "Node count imbalance!""
href="http://llvm.org/bugs/show_bug.cgi?id=22744">22744</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang++ 3.4 crash: "Node count imbalance!"
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.4
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kdevel@vogtner.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>--- a.cc ---
bool f[2];
void u(int a)
{
if (f[a])
f[a] = false;
}
int main ()
{
}
--- a.cc end ---
Using at least -O ("clang++ -O a.cc") crashes the compiler:
clang: /.../llvm-3.4/include/llvm/ADT/DenseMap.h:98: void
llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT>::clear() [with DerivedT =
llvm::DenseMap<llvm::MachineBasicBlock*, <unnamed>::BlockChain*,
llvm::DenseMapInfo<llvm::MachineBasicBlock*> >, KeyT =
llvm::MachineBasicBlock*, ValueT = <unnamed>::BlockChain*, KeyInfoT =
llvm::DenseMapInfo<llvm::MachineBasicBlock*>]: Assertion `getNumEntries() == 0
&& "Node count imbalance!"' failed.
0 clang 0x000000000259fc02 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
llvm 3.3 works okay. Could not test with 3.5.1.</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>