<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 - Clang emits incorrect mangled name"
href="https://bugs.llvm.org/show_bug.cgi?id=33177">33177</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang emits incorrect mangled name
</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>enhancement
</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>tberghammer@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Version:
clang version 5.0.0 (trunk 303332) (llvm/trunk 303340)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /mnt/ssd/ll/git/build/host-release/bin
Take the following source code:
class aaaaa {
public:
aaaaa(int);
};
class bbbbb : aaaaa {
using aaaaa::aaaaa;
};
void ccccc() { bbbbb(1); }
Compile it with: clang++ -std=c++11 file.cpp -c
Run: objdump -t file.o
Notice that clang produced the following mangled name: _ZN5bbbbbCI25aaaaaEi
I think we tried to either mangle "aaaaa::aaaaa(int)" imported into bbbbb or
"bbbbb::bbbbb(int)" but the result seems to be wrong. As far as I can tell it
is syntactically invalid as the 'C' should be followed by a number to specify
the constructor while CI2 is an invalid sequence.
Note: Compiling the same code with 3.5.0 or with gcc 4.8.4 mangles supposedly
the same function as _ZN5bbbbbC2Ei what seems to be much more reasonable.</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>