ptree.c (cxx_print_type): Dump fullname.
authorJason Merrill <jason@redhat.com>
Wed, 27 Apr 2011 05:17:10 +0000 (01:17 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 27 Apr 2011 05:17:10 +0000 (01:17 -0400)
* ptree.c (cxx_print_type) [TYPENAME_TYPE]: Dump fullname.
(cxx_print_identifier): Correct indentation.

From-SVN: r173006

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

index fba4a032d51ea4b6973e193a9027dbaa7f4e82a0..2eabf118cb3257c628646b1e1cbb33f041c2a83a 100644 (file)
@@ -1,5 +1,8 @@
 2011-04-26  Jason Merrill  <jason@redhat.com>
 
+       * ptree.c (cxx_print_type) [TYPENAME_TYPE]: Dump fullname.
+       (cxx_print_identifier): Correct indentation.
+
        PR c++/48530
        * decl.c (cxx_maybe_build_cleanup): Add complain parm.
        * tree.c (force_target_expr): Add complain parm.
index 49dc82b635476bdc16c50f2a95f2b16461004053..a4c3ed5ed0cfe9484e1d7d8ee8633c1609a91cb9 100644 (file)
@@ -99,6 +99,11 @@ cxx_print_type (FILE *file, tree node, int indent)
       print_node (file, "expr", DECLTYPE_TYPE_EXPR (node), indent + 4);
       return;
 
+    case TYPENAME_TYPE:
+      print_node (file, "fullname", TYPENAME_TYPE_FULLNAME (node),
+                 indent + 4);
+      return;
+
     default:
       return;
     }
@@ -175,12 +180,12 @@ cxx_print_identifier (FILE *file, tree node, int indent)
   if (indent == 0)
     fprintf (file, " ");
   else
-    indent_to (file, indent);
+    indent_to (file, indent + 4);
   cxx_print_binding (file, IDENTIFIER_NAMESPACE_BINDINGS (node), "bindings");
   if (indent == 0)
     fprintf (file, " ");
   else
-    indent_to (file, indent);
+    indent_to (file, indent + 4);
   cxx_print_binding (file, IDENTIFIER_BINDING (node), "local bindings");
   print_node (file, "label", IDENTIFIER_LABEL_VALUE (node), indent + 4);
   print_node (file, "template", IDENTIFIER_TEMPLATE (node), indent + 4);