This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/59170] pretty printers: end iterator invalid pointer


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]