<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 creates a symbol it cannot demangle"
href="https://bugs.llvm.org/show_bug.cgi?id=46097">46097</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang creates a symbol it cannot demangle
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hans@chromium.org
</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=23539" name="attach_23539" title="preprocessed source">attachment 23539</a> <a href="attachment.cgi?id=23539&action=edit" title="preprocessed source">[details]</a></span>
preprocessed source
When compiling the attached file, Clang creates a symbol that cannot be
demangled by llvm-cxxfilt:
$ build.release/bin/clang++ -target x86_64-pc-linux-gnu -std=c++14 -w -c
/tmp/a.ii -o /tmp/a.o && nm /tmp/a.o | grep
'_ZN12hb_partial_tILj2EPK4$_19PKN2OT14UnsizedArrayOfINS3_8OffsetToINS3_9AxisValueENS3_7IntTypeItLj2EEELb1EEEEEEclIRKS9_JELj2ELPv0EEEDTclL_ZL9hb_invokeEclL_ZL10hb_declvalIS2_ET_vEEcl10hb_declvalISJ_EEclL_ZSI_ISC_ESJ_vEEspcl10hb_declvalIT0_EEEEOSJ_DpOSK_'
| build.release/bin/llvm-cxxfilt
0000000000001cd0 t
_ZN12hb_partial_tILj2EPK4$_19PKN2OT14UnsizedArrayOfINS3_8OffsetToINS3_9AxisValueENS3_7IntTypeItLj2EEELb1EEEEEEclIRKS9_JELj2ELPv0EEEDTclL_ZL9hb_invokeEclL_ZL10hb_declvalIS2_ET_vEEcl10hb_declvalISJ_EEclL_ZSI_ISC_ESJ_vEEspcl10hb_declvalIT0_EEEEOSJ_DpOSK_
GCC's c++filt demangles it like this:
$ echo
'_ZN12hb_partial_tILj2EPK4$_19PKN2OT14UnsizedArrayOfINS3_8OffsetToINS3_9AxisValueENS3_7IntTypeItLj2EEELb1EEEEEEclIRKS9_JELj2ELPv0EEEDTclL_ZL9hb_invokeEclL_ZL10hb_declvalIS2_ET_vEEcl10hb_declvalISJ_EEclL_ZSI_ISC_ESJ_vEEspcl10hb_declvalIT0_EEEEOSJ_DpOSK_'
| c++filt
decltype (hb_invoke((hb_declval<$_19 const*>)(),
(hb_declval<OT::OffsetTo<OT::AxisValue, OT::IntType<unsigned short, 2u>, true>
const&>)(), (hb_declval<OT::UnsizedArrayOf<OT::OffsetTo<OT::AxisValue,
OT::IntType<unsigned short, 2u>, true> > const*>)())) hb_partial_t<2u, $_19
const*, OT::UnsizedArrayOf<OT::OffsetTo<OT::AxisValue, OT::IntType<unsigned
short, 2u>, true> > const*>::operator()<OT::OffsetTo<OT::AxisValue,
OT::IntType<unsigned short, 2u>, true> const&, , 2u,
(void*)0>(OT::OffsetTo<OT::AxisValue, OT::IntType<unsigned short, 2u>, true>
const&)</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>