This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/59170] pretty printers: end iterator invalid pointer
- 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: Wed, 15 Feb 2017 13:39:20 +0000
- Subject: [Bug libstdc++/59170] pretty printers: end iterator invalid pointer
- Auto-submitted: auto-generated
- References: <bug-59170-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59170
--- Comment #18 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Feb 15 13:38:48 2017
New Revision: 245481
URL: https://gcc.gnu.org/viewcvs?rev=245481&root=gcc&view=rev
Log:
PR59170 make pretty printers check for singular iterators
Backport from mainline
2016-12-15 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/59170
* python/libstdcxx/v6/printers.py (StdListIteratorPrinter.to_string)
(StdSlistIteratorPrinter.to_string, StdVectorIteratorPrinter.to_string)
(StdRbtreeIteratorPrinter.to_string)
(StdDequeIteratorPrinter.to_string): Add check for value-initialized
iterators.
* testsuite/libstdc++-prettyprinters/simple.cc: Test them.
* testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
Modified:
branches/gcc-6-branch/libstdc++-v3/ChangeLog
branches/gcc-6-branch/libstdc++-v3/python/libstdcxx/v6/printers.py
branches/gcc-6-branch/libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc
branches/gcc-6-branch/libstdc++-v3/testsuite/libstdc++-prettyprinters/simple11.cc