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

            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: unassignedb...@nondot.org
          Reporter: tbergham...@google.com
                CC: llvm-bugs@lists.llvm.org, mclow.li...@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 {
 public:
  aaaaa(int);
};
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:
https://bugs.llvm.org/show_bug.cgi?id=33177
http://sourcerytools.com/pipermail/cxx-abi-dev/2016-May/002918.html

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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to