<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 --- - Segmentation fault when using nested templated typedefs" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24318&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=Yv5N5l559MhR8WKZHelLGObG8L_GXYxP3kl2cUFmCwI&s=lnpK1FKWkvG5vTVB17JIt_BZfqxf6z1CBZdX89Ap3gs&e=">24318</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Segmentation fault when using nested templated typedefs
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>gereon.kremer@cs.rwth-aachen.de
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, 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=14674" name="attach_14674" title="Source code">attachment 14674</a> <a href="attachment.cgi?id=14674&action=edit" title="Source code">[details]</a></span>
Source code
Some of our code makes clang 3.6.2-1 (Arch Linux) crash.
Based on our code, I crafted a very small example demonstrating this bug.
Basically, we have a templated class A with a nested class B that is also
templated.
Now, we have another templated class C that defines a typedef for A<T>::B<T>.
Finally, we try to use this typedef in the main function.
Clang bails out on this:
$ clang++ clangcrash.cpp
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.2 (tags/RELEASE_362/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_bugs_&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=Yv5N5l559MhR8WKZHelLGObG8L_GXYxP3kl2cUFmCwI&s=PlrLkuS3QpEBBgWTEt41GVKTJ29NK1IapH9h_nwLcfw&e=">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/clangcrash-21862e.cpp
clang: note: diagnostic msg: /tmp/clangcrash-21862e.sh
clang: note: diagnostic msg:
********************
Attached, you find the example.</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>