https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90945

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jonathan Wakely
<r...@gcc.gnu.org>:

https://gcc.gnu.org/g:6cc765a7917004478770f27bade1ecbb55906ae0

commit r9-9384-g6cc765a7917004478770f27bade1ecbb55906ae0
Author: Michael Weghorn <m.wegh...@posteo.de>
Date:   Wed Jun 19 22:57:06 2019 +0000

    Have std::vector printer's iterator return bool for vector<bool>

    Have the pretty-printer for 'std::vector<bool>' return a
    value of type 'bool' rather than an 'int'.

    This way, the type is clear and that can be used for better
    display and a 'gdb.Value' constructed from the returned value
    will have type 'bool' again, not e.g. 'long long' as happened
    previously (at least with GDB 8.2.1 on amd64).

    2019-06-19  Michael Weghorn  <m.wegh...@posteo.de>
                Jonathan Wakely  <jwak...@redhat.com>

            PR libstdc++/90945
            * python/libstdcxx/v6/printers.py (StdVectorPrinter._iterator): Use
            values of type bool for vector<bool> elements.
            * testsuite/libstdc++-prettyprinters/simple.cc: Test vector<bool>.
            * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.

    Co-Authored-By: Jonathan Wakely <jwak...@redhat.com>

    (cherry picked from commit 36d0dada6773d7fd7c5ace64c90e723930a3b81e)
  • [Bug libstdc++/90945] Enhanceme... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to