<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 --- - Segfault on dumping AST of code using a template friend class"
href="http://llvm.org/bugs/show_bug.cgi?id=15220">15220</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Segfault on dumping AST of code using a template friend class
</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>fakju666@o2.pl
</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=9988" name="attach_9988" title="Testcase">attachment 9988</a> <a href="attachment.cgi?id=9988&action=edit" title="Testcase">[details]</a></span>
Testcase
This bug prevents me from generating ASTs for a lot of code. The attached
(minimized) testcase causes clang to segfault when invoked with:
clang++ -cc1 -std=gnu++0x -ast-dump test.cpp >test.ast
The resulting ast file will be 1.4 GB big and indicates that the AST dumping
code goes into an infinite loop. Possibly related to <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - template friend class is not inserted in the AST"
href="show_bug.cgi?id=12292">bug 12292</a> or <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Clang doesn't consider conversion member function template friends."
href="show_bug.cgi?id=7308">bug 7308</a>?
Tested using clang version 3.3 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a>
992c59247497ba38e904142f9ac3028c3e1874af) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
882b9276cb3a19ecc4fd307d8c0acd17574570a0).</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>