From: Jason Merrill Date: Mon, 18 May 2015 17:13:59 +0000 (-0400) Subject: * ptree.c (cxx_print_xnode): Handle TRAIT_EXPR. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80f1c14df5da32ce83a4eca66ecd5b38d12f458d;p=gcc.git * ptree.c (cxx_print_xnode): Handle TRAIT_EXPR. From-SVN: r223299 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 210b1770463..d4f739c5521 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2015-05-18 Jason Merrill + + * ptree.c (cxx_print_xnode): Handle TRAIT_EXPR. + 2015-05-16 Manuel López-Ibáñez PR fortran/44054 diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 2d0b584e7ab..fd71bb44089 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -271,6 +271,13 @@ cxx_print_xnode (FILE *file, tree node, int indent) print_node (file, "pattern", DEFERRED_NOEXCEPT_PATTERN (node), indent+4); print_node (file, "args", DEFERRED_NOEXCEPT_ARGS (node), indent+4); break; + case TRAIT_EXPR: + indent_to (file, indent+4); + fprintf (file, "kind %d", TRAIT_EXPR_KIND (node)); + print_node (file, "type 1", TRAIT_EXPR_TYPE1 (node), indent+4); + if (TRAIT_EXPR_TYPE2 (node)) + print_node (file, "type 2", TRAIT_EXPR_TYPE2 (node), indent+4); + break; case LAMBDA_EXPR: cxx_print_lambda_node (file, node, indent); break;