From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 266CE3861844; Mon, 13 Nov 2023 15:44:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 266CE3861844 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699890256; bh=8nm/GtHc7aG9hDopz0uRp+uZkrDG4uMVI70a8vRJUEY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VUz+07kmMyV/7UjtFiq/b4Ck/S1zYqT3BCkdRDYzNWHFWtgj9RaeXTHKpfXajhxrT lqUqKcmoV0ZXRU2T5d4aqwsn4PyU+jx1lApimKDOf+zmE8ZGcl58Mh6Gpx4Rs+dtQB +uS8eHjyEtblY97zQ67PB2fLRDAGacY6VrQTZmxU= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/110944] std::variant & optional GDB representation is too verbose Date: Mon, 13 Nov 2023 15:44:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110944 --- Comment #3 from CVS Commits --- The releases/gcc-13 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:3a3d3d2361e3c44dad472a5a12318cba19b6e643 commit r13-8047-g3a3d3d2361e3c44dad472a5a12318cba19b6e643 Author: Jonathan Wakely 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)=