* error.c (dump_decl): Do say "typedef" for the injected class name.
authorJason Merrill <jason@redhat.com>
Wed, 24 Jun 2009 18:47:43 +0000 (14:47 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 24 Jun 2009 18:47:43 +0000 (14:47 -0400)
From-SVN: r148916

gcc/cp/ChangeLog
gcc/cp/error.c

index 2a6ec5d..fc9de2d 100644 (file)
@@ -1,5 +1,7 @@
 2009-06-24  Jason Merrill  <jason@redhat.com>
 
+       * error.c (dump_decl): Do say "typedef" for the injected class name.
+
        * pt.c (lookup_template_class): Use currently_open_class,
        compare template args later.
 
index 7be241d..98dacb1 100644 (file)
@@ -862,7 +862,7 @@ dump_decl (tree t, int flags)
     {
     case TYPE_DECL:
       /* Don't say 'typedef class A' */
-      if (DECL_ARTIFICIAL (t))
+      if (DECL_ARTIFICIAL (t) && !DECL_SELF_REFERENCE_P (t))
        {
          if ((flags & TFF_DECL_SPECIFIERS)
              && TREE_CODE (TREE_TYPE (t)) == TEMPLATE_TYPE_PARM)