diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ab1678a63e0e..27b735a400ed 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +Fri Jan 16 11:40:50 1998 Bruno Haible + + * error.c (dump_decl): For enum tags, output the tag, not its value. + 1998-01-13 Brendan Kehoe * decl.c (init_decl_processing): Only call init_rtti_processing diff --git a/gcc/cp/error.c b/gcc/cp/error.c index b318126211eb..d2cad749a421 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -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