* ptree.c (cxx_print_xnode): Handle TEMPLATE_INFO.

From-SVN: r162268
This commit is contained in:
Jason Merrill 2010-07-16 17:05:07 -04:00 committed by Jason Merrill
parent d4404feead
commit f25669da4a
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-07-16 Jason Merrill <jason@redhat.com>
* ptree.c (cxx_print_xnode): Handle TEMPLATE_INFO.
2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
* init.c (build_new_1): Use cp_build_function_call_nary instead of

View File

@ -207,6 +207,15 @@ cxx_print_xnode (FILE *file, tree node, int indent)
TEMPLATE_PARM_IDX (node), TEMPLATE_PARM_LEVEL (node),
TEMPLATE_PARM_ORIG_LEVEL (node));
break;
case TEMPLATE_INFO:
print_node (file, "template", TI_TEMPLATE (node), indent+4);
print_node (file, "args", TI_ARGS (node), indent+4);
if (TI_PENDING_TEMPLATE_FLAG (node))
{
indent_to (file, indent + 3);
fprintf (file, "pending_template");
}
break;
default:
break;
}