This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/80276] New: pretty printer for std::unique_ptr<T[]> shows type as std::unique_ptr<T>
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 01 Apr 2017 11:21:53 +0000
- Subject: [Bug libstdc++/80276] New: pretty printer for std::unique_ptr<T[]> shows type as std::unique_ptr<T>
- Auto-submitted: auto-generated
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 ""