<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 - cxa_demangle failes for inherited constructors"
   href="https://bugs.llvm.org/show_bug.cgi?id=33223">33223</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>cxa_demangle failes for inherited constructors
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++abi
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tberghammer@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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:
<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Clang emits incorrect mangled name"
   href="show_bug.cgi?id=33177">https://bugs.llvm.org/show_bug.cgi?id=33177</a>
<a href="http://sourcerytools.com/pipermail/cxx-abi-dev/2016-May/002918.html">http://sourcerytools.com/pipermail/cxx-abi-dev/2016-May/002918.html</a>

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?</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>