* error.c (dump_decl): For enum tags, output the tag, not its value.
authorBruno Haible <bruno@linuix.mathematik.uni-karlsruhe.de>
Fri, 16 Jan 1998 23:55:44 +0000 (23:55 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 16 Jan 1998 23:55:44 +0000 (18:55 -0500)
From-SVN: r17381

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

index ab1678a63e0e16c05ff59034c8124f5d5623ae51..27b735a400ed6a9b5c7180701f298c87ab43a665 100644 (file)
@@ -1,3 +1,7 @@
+Fri Jan 16 11:40:50 1998  Bruno Haible  <bruno@linuix.mathematik.uni-karlsruhe.de>
+
+        * error.c (dump_decl): For enum tags, output the tag, not its value.
+
 1998-01-13  Brendan Kehoe  <brendan@cygnus.com>
 
        * decl.c (init_decl_processing): Only call init_rtti_processing
index b318126211ebfc12657478bfa2b2a6bb9f98dcc3..d2cad749a421846e2d21e3526c0eb0197eb4ceb4 100644 (file)
@@ -810,6 +810,8 @@ dump_decl (t, v)
          || (DECL_INITIAL (t) &&
              TREE_CODE (DECL_INITIAL (t)) == TEMPLATE_CONST_PARM))
        goto general;
+      else if (DECL_NAME (t))
+       dump_decl (DECL_NAME (t), v);
       else if (DECL_INITIAL (t))
        dump_expr (DECL_INITIAL (t), 0);
       else