OSDN Git Service

* error.c (dump_decl): For enum tags, output the tag, not its value.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Jan 1998 23:55:44 +0000 (23:55 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Jan 1998 23:55:44 +0000 (23:55 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17381 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ab1678a..27b735a 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 b318126..d2cad74 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