* ptree.c (cxx_print_type) [DECLTYPE_TYPE]: Print the expression.
authorJason Merrill <jason@redhat.com>
Wed, 2 Sep 2009 15:48:44 +0000 (11:48 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 2 Sep 2009 15:48:44 +0000 (11:48 -0400)
From-SVN: r151334

gcc/cp/ChangeLog
gcc/cp/ptree.c

index 2a88d6347b43a2d7f6dde599ff3212af710233a7..d4745c370c68a78058384dc3832d5b249efdf6cf 100644 (file)
@@ -1,3 +1,7 @@
+2009-09-01  Jason Merrill  <jason@redhat.com>
+
+       * ptree.c (cxx_print_type) [DECLTYPE_TYPE]: Print the expression.
+
 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
 
        * cp-tree.h (TFF_NO_OMIT_DEFAULT_TEMPLATE_ARGUMENTS): New.
index 69279cd4883917c6882e662678981c993f15b9ac..a1fa71ffe2219e79df24ad25c04d547145ee4906 100644 (file)
@@ -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;
     }