<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 - ItaniumDemangler failure on clang generated mangling"
href="https://bugs.llvm.org/show_bug.cgi?id=49186">49186</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ItaniumDemangler failure on clang generated mangling
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>10.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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>carlo@leaningtech.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24527" name="attach_24527" title="Reduced test case">attachment 24527</a> <a href="attachment.cgi?id=24527&action=edit" title="Reduced test case">[details]</a></span>
Reduced test case
The easier way to reproduce is:
c++filt _ZN9SomeClassI9SomeOtherI4TypeLS1_n1EEEC2Ev
-> SomeClass<SomeOther<Type, (Type)-1> >::SomeClass()
llvm-cxxfilt _ZN9SomeClassI9SomeOtherI4TypeLS1_n1EEEC2Ev
-> _ZN9SomeClassI9SomeOtherI4TypeLS1_n1EEEC2Ev
So llvm-cxxfilt (that underneath calls llvm/lib/Demangle/ItaniumDemangler.cpp's
partial_demangle) is not able to demangle the relevant mangled name.
Then:
clang++ error_demangler.cpp -S -emit-llvm
and checking the generated error_demangler.ll it will show
_ZN9SomeClassI9SomeOtherI4TypeLS1_n1EEEC2Ev as a mangled name generated by
clang.
The problem arose during in the development of Cheerp, a JavaScript backend for
LLVM. Currently we have a work around, but it would be easier if the mangling
produced by clang is always demangleable by llvm.</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>