<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 - Crash compiling template code with using-aliasing"
href="https://bugs.llvm.org/show_bug.cgi?id=36647">36647</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash compiling template code with using-aliasing
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>5.0
</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>enhancement
</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>jacob.a.lundgren@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20023" name="attach_20023" title="Backtrace, reproducing preprocessed source and compilation script">attachment 20023</a> <a href="attachment.cgi?id=20023&action=edit" title="Backtrace, reproducing preprocessed source and compilation script">[details]</a></span>
Backtrace, reproducing preprocessed source and compilation script
Crash attempting to compile a piece of valid C++ code containing a template
struct with a nested template struct. A using-statement is used for the outer
template when explicitly specializing the inner template for a specific
specialization of the outer template. Of note is that replacing the
using-statement with an equivalent typedef means that compilation succeeds.
Steps to reproduce:
1. Compile the attached preprocessed source using the attached command
Actual results:
clang++ crashes
Expected results:
Compilation proceeds and succeeds
Hardware:
Arch Linux 4.15.7-1-ARCH</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>