<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 --- - Abort with recursive C++14 polymorphic lambda"
href="https://llvm.org/bugs/show_bug.cgi?id=25475">25475</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Abort with recursive C++14 polymorphic lambda
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>pkeir@outlook.com
</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>Created <span class=""><a href="attachment.cgi?id=15258" name="attach_15258" title="Compiling the attached code crash the front-end.">attachment 15258</a> <a href="attachment.cgi?id=15258&action=edit" title="Compiling the attached code crash the front-end.">[details]</a></span>
Compiling the attached code crash the front-end.
The following code produces an abort following an assertion failure in
SemaTemplateInstantiate.cpp. I'm using 64-bit Ubuntu 15.04 (vivid), and clang
version 3.8.0 (trunk 252425). GCC 4.9.2 compiles and runs.
clang++ -std=c++14 rec_lam_clang.cpp
int main(int argc, char *argv[])
{
const auto a = [](const auto b, const auto x)
{
if (x)
return;
b(b,"dd");
};
a(a,1);
return 0;
}</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>