diff options
author | Jason Merrill <jason@redhat.com> | 2015-05-18 13:13:59 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-05-18 13:13:59 -0400 |
commit | 80f1c14df5da32ce83a4eca66ecd5b38d12f458d (patch) | |
tree | b8e971209dcf3268e52110ef93a582b399b62bf3 /gcc/cp/ptree.c | |
parent | 6f2ac3606e151edde9980b1ae9735dbd68aa992b (diff) | |
download | gcc-80f1c14df5da32ce83a4eca66ecd5b38d12f458d.zip gcc-80f1c14df5da32ce83a4eca66ecd5b38d12f458d.tar.gz gcc-80f1c14df5da32ce83a4eca66ecd5b38d12f458d.tar.bz2 |
* ptree.c (cxx_print_xnode): Handle TRAIT_EXPR.
From-SVN: r223299
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r-- | gcc/cp/ptree.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 2d0b584..fd71bb4 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; |