* print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
* cp/ptree.c (cxx_print_xnode): Handle ARGUMENT_PACK_SELECT.
From-SVN: r174230
+2011-05-25 Jason Merrill <jason@redhat.com>
+
+ * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
+
2011-05-25 Uros Bizjak <ubizjak@gmail.com>
* config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2011-05-25 Jason Merrill <jason@redhat.com>
+ * ptree.c (cxx_print_xnode): Handle ARGUMENT_PACK_SELECT.
+
PR c++/45698
* pt.c (dependent_template_arg_p): See through ARGUMENT_PACK_SELECT.
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;
}
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))