commit 46cccd60afea40407a278f6d937373e0121c24ee
Author: Jason Merrill <jason@redhat.com>
Date: Wed May 25 13:32:05 2011 -0400
* print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
* cp/ptree.c (cxx_print_xnode): Handle ARGUMENT_PACK_SELECT.
@@ -221,6 +221,12 @@ cxx_print_xnode (FILE *file, tree node, int indent)
fprintf (file, "pending_template");
}
break;
+ case ARGUMENT_PACK_SELECT:
+ print_node (file, "pack", ARGUMENT_PACK_SELECT_FROM_PACK (node),
+ indent+4);
+ indent_to (file, indent + 3);
+ fprintf (file, "index %d", ARGUMENT_PACK_SELECT_INDEX (node));
+ break;
default:
break;
}
@@ -321,7 +321,7 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
if (indent <= 4)
print_node_brief (file, "type", TREE_TYPE (node), indent + 4);
}
- else
+ else if (CODE_CONTAINS_STRUCT (code, TS_TYPED))
{
print_node (file, "type", TREE_TYPE (node), indent + 4);
if (TREE_TYPE (node))