From: Bruno Haible Date: Fri, 16 Jan 1998 23:55:44 +0000 (+0000) Subject: * error.c (dump_decl): For enum tags, output the tag, not its value. X-Git-Tag: releases/libf2c-0.5.21~181 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=224c649b801d8064c6c5de50b31408d4c1e37e49;p=thirdparty%2Fgcc.git * error.c (dump_decl): For enum tags, output the tag, not its value. From-SVN: r17381 --- 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