From: Jason Merrill Date: Fri, 21 Oct 2016 19:45:39 +0000 (-0400) Subject: * ptree.c (cxx_print_xnode) [TEMPLATE_PARM_INDEX]: Dump the decl. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7564a05ff6a64cd1536a903e5f5fad50fed6973;p=gcc.git * ptree.c (cxx_print_xnode) [TEMPLATE_PARM_INDEX]: Dump the decl. From-SVN: r241424 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f2c23a23016..3d62d68edd0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2016-10-21 Jason Merrill + + * ptree.c (cxx_print_xnode) [TEMPLATE_PARM_INDEX]: Dump the decl. + 2016-10-21 Jakub Jelinek * cp-objcp-common.c (cp_decl_dwarf_attribute): Handle diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 5726f96b295..e3e5e33f104 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -236,6 +236,7 @@ cxx_print_xnode (FILE *file, tree node, int indent) print_node (file, "chain", TREE_CHAIN (node), indent+4); break; case TEMPLATE_PARM_INDEX: + print_node (file, "decl", TEMPLATE_PARM_DECL (node), indent+4); indent_to (file, indent + 3); fprintf (file, "index %d level %d orig_level %d", TEMPLATE_PARM_IDX (node), TEMPLATE_PARM_LEVEL (node),