[llvm-bugs] [Bug 46097] New: clang creates a symbol it cannot demangle

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 27 04:35:44 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46097

            Bug ID: 46097
           Summary: clang creates a symbol it cannot demangle
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: hans at chromium.org
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 23539
  --> https://bugs.llvm.org/attachment.cgi?id=23539&action=edit
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&)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200527/3e57ae8f/attachment-0001.html>


More information about the llvm-bugs mailing list