public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2652] c++: pretty-print TYPE_PACK_EXPANSION better
@ 2021-07-31 14:45 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2021-07-31 14:45 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5b759cdcb7f863520346e5bf63fcf1d3746c2cc3

commit r12-2652-g5b759cdcb7f863520346e5bf63fcf1d3746c2cc3
Author: Jason Merrill <jason@redhat.com>
Date:   Sat Jul 10 05:45:02 2021 -0400

    c++: pretty-print TYPE_PACK_EXPANSION better
    
    gcc/cp/ChangeLog:
    
            * ptree.c (cxx_print_type) [TYPE_PACK_EXPANSION]: Also print
            PACK_EXPANSION_PATTERN.

Diff:
---
 gcc/cp/ptree.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c
index 33b73fb24b6..7f140f5f06b 100644
--- a/gcc/cp/ptree.c
+++ b/gcc/cp/ptree.c
@@ -171,6 +171,7 @@ cxx_print_type (FILE *file, tree node, int indent)
       return;
 
     case TYPE_PACK_EXPANSION:
+      print_node (file, "pattern", PACK_EXPANSION_PATTERN (node), indent + 4);
       print_node (file, "args", PACK_EXPANSION_EXTRA_ARGS (node), indent + 4);
       return;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-31 14:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-31 14:45 [gcc r12-2652] c++: pretty-print TYPE_PACK_EXPANSION better Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).