<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 - boost::type_index Type name demangling failed"
   href="https://bugs.llvm.org/show_bug.cgi?id=31981">31981</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>boost::type_index Type name demangling failed
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>4.0
          </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>release blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>benni.buch@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When I use libc++ 4.0.0-rc1 the Boost.TypeIndex library throw exception with
every use:


#include <boost/type_index.hpp>
#include <iostream>

int main(){
    std::cout << boost::typeindex::type_id< int >().pretty_name() << '\n';
}


$ clang++ -stdlib=libc++ -I $BOOST_ROOT type_index.cpp -o type_index
$ ./type_index
terminating with uncaught exception of type
N5boost16exception_detail10clone_implINS0_19error_info_injectorISt13runtime_errorEEEE:
Type name demangling failed
Abgebrochen



Unfortunately I couldn't check if it is already fixed in RC2.


Affected source sniped from the Boost library:

const char* begin = demangled_name.get();
if (!begin) {
    boost::throw_exception(std::runtime_error("Type name demangling failed"));
}</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>