* ptree.c (cxx_print_xnode) [TEMPLATE_PARM_INDEX]: Dump the decl.

From-SVN: r241424
This commit is contained in:
Jason Merrill 2016-10-21 15:45:39 -04:00 committed by Jason Merrill
parent 8b729f5c8f
commit a7564a05ff
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2016-10-21 Jason Merrill <jason@redhat.com>
* ptree.c (cxx_print_xnode) [TEMPLATE_PARM_INDEX]: Dump the decl.
2016-10-21 Jakub Jelinek <jakub@redhat.com>
* cp-objcp-common.c (cp_decl_dwarf_attribute): Handle

View File

@ -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),