<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Assertion failure in `setInvalidDecl()` when using modules"
href="https://bugs.llvm.org/show_bug.cgi?id=38531">38531</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure in `setInvalidDecl()` when using modules
</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>Modules
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>andrewjcg@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20683" name="attach_20683" title="Source setup with command reproducing bug.">attachment 20683</a> <a href="attachment.cgi?id=20683&action=edit" title="Source setup with command reproducing bug.">[details]</a></span>
Source setup with command reproducing bug.
Getting a clang compiler assertion failure in `clang::Decl::setInvalidDecl()`
when using modules and a lot of template meta-programming. Apologies for the
complicated repro that I attached -- I tried to reduce this but wasn't able to
break the dependency on libstdc++ headers or simplify the template code. This
crash originally came from using
<a href="https://github.com/facebook/folly/blob/master/folly/Function.h">https://github.com/facebook/folly/blob/master/folly/Function.h</a>.</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>