[llvm-bugs] [Bug 31981] New: boost::type_index Type name demangling failed

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 16 07:56:16 PST 2017


            Bug ID: 31981
           Summary: boost::type_index Type name demangling failed
           Product: libc++
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: benni.buch at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

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
Type name demangling failed

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"));

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/20170216/66008bd2/attachment.html>

More information about the llvm-bugs mailing list