<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 --- - Compilation never end"
href="https://llvm.org/bugs/show_bug.cgi?id=28445">28445</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Compilation never end
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.8
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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++14
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bkarelb@hotmail.it
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=16703" name="attach_16703" title="The source code causing the problem">attachment 16703</a> <a href="attachment.cgi?id=16703&action=edit" title="The source code causing the problem">[details]</a></span>
The source code causing the problem
I was trying to compile a "simple" c++14 program using an implementation of
variant type(i think the one that will be included in the STL,
<a href="https://github.com/mpark/variant">https://github.com/mpark/variant</a>). After i start the compilation the program
never end. After some test i've noticed that if don't use the visit the variant
using the struct, the program compile and work as expected.
I think the problem is duo to the large number of types used to instantiate the
variant, and the visitor struct contain the same number of operator"()"
overloads for each type.
In previous version, with a self made variant container, clang-cl exit without
compiling, cause a name mangling problem(the length of the name was too long).
I'm using clang-cl, and as far i know i can't emit llvm code, so i can't give
you more information. I precise that i stopped clang through the task manager(
it showed the cpu usage at 35% - 38% and ram usage instead stop at about 46MB.</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>