aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/ptree.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2009-09-02 11:48:44 -0400
committerJason Merrill <jason@gcc.gnu.org>2009-09-02 11:48:44 -0400
commit301ea0943188c469a2c9b567dedb0f7f64d7d826 (patch)
treeda3b1f3b6adf3d1fce8e8ed811d58a8e97b4dac3 /gcc/cp/ptree.c
parentf071aaca7e9372ecaff4835bea8c39d58d29a0e5 (diff)
downloadgcc-301ea0943188c469a2c9b567dedb0f7f64d7d826.zip
gcc-301ea0943188c469a2c9b567dedb0f7f64d7d826.tar.gz
gcc-301ea0943188c469a2c9b567dedb0f7f64d7d826.tar.bz2
* ptree.c (cxx_print_type) [DECLTYPE_TYPE]: Print the expression.
From-SVN: r151334
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r--gcc/cp/ptree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c
index 69279cd..a1fa71f 100644
--- a/gcc/cp/ptree.c
+++ b/gcc/cp/ptree.c
@@ -95,6 +95,10 @@ cxx_print_type (FILE *file, tree node, int indent)
case UNION_TYPE:
break;
+ case DECLTYPE_TYPE:
+ print_node (file, "expr", DECLTYPE_TYPE_EXPR (node), indent + 4);
+ return;
+
default:
return;
}