* ptree.c (cxx_print_type) [DECLTYPE_TYPE]: Print the expression.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Sep 2009 15:48:44 +0000 (15:48 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Sep 2009 15:48:44 +0000 (15:48 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151334 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 2a88d63..d4745c3 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 69279cd..a1fa71f 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;
     }