[Bug libstdc++/80276] New: pretty printer for std::unique_ptr<T[]> shows type as std::unique_ptr<T>
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Apr 1 11:21:00 GMT 2017
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 ""
More information about the Gcc-bugs
mailing list