https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88170

            Bug ID: 88170
           Summary: pretty printer FAILs
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

type =
std::unique_ptr<std::vector<std::unique_ptr<std::list<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >>[]>>[99]>^M
got: type =
std::unique_ptr<std::vector<std::unique_ptr<std::list<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >>[]>>[99]>^M
FAIL: libstdc++-prettyprinters/80276.cc whatis p4

This fails because std::__cxx11::basic_string<char, blah blah> is not
substituted  with std::string as expected.

There are also several fails related to shared_ptr:

$21 = warning: RTTI symbol not found for class 'std::_Sp_counted_deleter<int*,
std::__sp_array_delete, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>'^M
got: $21 = warning: RTTI symbol not found for class
'std::_Sp_counted_deleter<int*, std::__sp_array_delete, std::allocator<void>,
(__gnu_cxx::_Lock_policy)2>'^M

I don't know why the RTTI is missing here. The same problem causes:

FAIL: libstdc++-prettyprinters/cxx17.cc print p
FAIL: libstdc++-prettyprinters/cxx17.cc print wp
FAIL: libstdc++-prettyprinters/cxx17.cc print q
FAIL: libstdc++-prettyprinters/cxx17.cc print wq
FAIL: libstdc++-prettyprinters/shared_ptr.cc print sp1
FAIL: libstdc++-prettyprinters/shared_ptr.cc print wp1
FAIL: libstdc++-prettyprinters/shared_ptr.cc print wp2

Reply via email to