<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 --- - Infinite recursion when trying to store a lambda in a std::function"
href="http://llvm.org/bugs/show_bug.cgi?id=18854">18854</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Infinite recursion when trying to store a lambda in a std::function
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.4
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>nick@astrant.net
</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=12069" name="attach_12069" title="The testcase.">attachment 12069</a> <a href="attachment.cgi?id=12069&action=edit" title="The testcase.">[details]</a></span>
The testcase.
I attached the crashing code. It seems fixed in the newest clang, where the
testcase compilation (gracefully) fails with some static_asserts failing. I
still figured it was worth reporting since I took the time to create a
testcase, haha.
Attached code makes this clang crash:
clang++ --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
But this clang works fine:
clang version 3.5
Target: x86_64-apple-darwin13.0.0
Thread model: posix
(since it's missing the revision, it's llvm @ 3cab648f with clang @ 93de7bb3 )
Cheers,</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>