<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 --- - Static Analyzer aborts with not yet implemented! UNREACHABLE executed at llvm/tools/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp:563"
href="http://llvm.org/bugs/show_bug.cgi?id=18909">18909</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Static Analyzer aborts with not yet implemented! UNREACHABLE executed at llvm/tools/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp:563
</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>Static Analyzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>kremenek@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>malcolm.parsons@gmail.com
</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>Created <span class=""><a href="attachment.cgi?id=12089" name="attach_12089" title="stderr.txt">attachment 12089</a> <a href="attachment.cgi?id=12089&action=edit" title="stderr.txt">[details]</a></span>
stderr.txt
clang version 3.4 (trunk 193399)
Static Analyzer aborts on this code:
#pragma GCC diagnostic ignored "-Wtype-limits"
#include <rapidjson/document.h>
#include <string>
#include <vector>
class A
{
public:
A(const std::string& s, const std::vector<std::string>& v) :
s(s), v(v) {}
private:
std::string s;
std::vector<std::string> v;
};
class B
{
public:
B(const std::string&);
private:
std::vector<A> w;
};
B::B(const std::string& s) {
rapidjson::Document file;
file.Parse<0>(s.c_str());
for (rapidjson::SizeType i = 0; i < 10; i++) {
std::vector<std::string> v;
w.emplace_back("foo", v);
}
}</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>