PR libstdc++/80276 fix pretty printers for array smart pointers
commit073fe8cfdfa3702d1a997552589069ff56b21d2d
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jan 2018 21:46:13 +0000 (9 21:46 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jan 2018 21:46:13 +0000 (9 21:46 +0000)
treebc03ad244623172d08b5c2628d2d373fd440eb55
parent912b63ba0d7a53b24c186ceebf671015ea2f3511
PR libstdc++/80276 fix pretty printers for array smart pointers

PR libstdc++/80276
* python/libstdcxx/v6/printers.py (SharedPointerPrinter)
(UniquePointerPrinter): Print correct template argument, not type of
the pointer.
(TemplateTypePrinter._recognizer.recognize): Handle failure to lookup
a type.
* testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of
array type.
* testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and
weak_ptr of array types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256400 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc
libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx17.cc