[llvm-bugs] [Bug 33223] New: cxa_demangle failes for inherited constructors

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 30 04:52:25 PDT 2017


            Bug ID: 33223
           Summary: cxa_demangle failes for inherited constructors
           Product: libc++abi
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: tberghammer at google.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

libc++abi fails to demangle the mangled name generated by clang for an
inherited constructor.

Example name where cxa_demangle fails: _ZN5bbbbbCI25aaaaaEi

Source code for generating the mangled name:
class aaaaa {
class bbbbb : aaaaa {
  using aaaaa::aaaaa;
void ccccc() { bbbbb(1); }

Clang version used to generate the name:
clang version 5.0.0 (trunk 303332) (llvm/trunk 303340)
Target: x86_64-unknown-linux-gnu
Thread model: posix

Additional context:

Open question: What should be the output of __cxa_demangle when demangling an
inherited constructor? What do people think about "bbbbb::bbbbb(int)" (hides
that it is an inherited constructor) or "bbbbb::aaaaa(int)" (hides that it is a
constructor) for the above case?

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/20170530/1ab6a498/attachment.html>

More information about the llvm-bugs mailing list