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

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

https://gcc.gnu.org/g:3a3d3d2361e3c44dad472a5a12318cba19b6e643

commit r13-8047-g3a3d3d2361e3c44dad472a5a12318cba19b6e643
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Tue Aug 22 14:26:51 2023 +0100

    libstdc++: Declutter std::optional and std:variant pretty printers
[PR110944]

    As the PR says, including the template arguments in the GDB output of
    these class templates can result in very long names, especially for
    std::variant. You can use 'whatis' or other GDB commands to get details
    of the type, we don't need to include it in the value.

    We could consider including the type if it's not too long, but I think
    consistency is better (and we already omit the template arguments for
    std::vector and other class templates).

    libstdc++-v3/ChangeLog:

            PR libstdc++/110944
            * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Do
            not show template arguments.
            (StdVariantPrinter): Likewise.
            * testsuite/libstdc++-prettyprinters/compat.cc: Adjust expected
            output.
            * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
            * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.

    (cherry picked from commit 701ce3c723623af13597c05df09a049c57c52fc0)
  • [Bug libstdc++/110944] std::var... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to