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

            Bug ID: 80276
           Summary: pretty printer for std::unique_ptr<T[]> shows type as
                    std::unique_ptr<T>
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

And also gives a GDB error:

(gdb) ptype/mt buf
type = Python Exception <class 'gdb.error'> No type named char [].:
class std::unique_ptr<char [], std::default_delete<char []> > [with _Tp = char
[], _Dp = std::default_delete<char []>] {
  private:
    std::__uniq_ptr_impl<char, _Dp> _M_t;
}
(gdb) p buf
$3 = std::unique_ptr<char> containing 0x7ffff5f46010 ""

Reply via email to