aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2004-09-16 18:52:48 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2004-09-16 18:52:48 +0000
commit2d0db225d32eecd53d1db78a80dc4ad0945c0833 (patch)
treec03439f796833724eb718b395139d30bbcae1864 /gcc/cp
parent49f48e9ffca06f9a945da052f04e67f509e00205 (diff)
downloadgcc-2d0db225d32eecd53d1db78a80dc4ad0945c0833.zip
gcc-2d0db225d32eecd53d1db78a80dc4ad0945c0833.tar.gz
gcc-2d0db225d32eecd53d1db78a80dc4ad0945c0833.tar.bz2
error.c (dump_decl): Make sure there is lang_specific info before checking for DTOR and CTOR decls.
2004-09-16 Andrew MacLeod <amacleod@redhat.com> * error.c (dump_decl): Make sure there is lang_specific info before checking for DTOR and CTOR decls. From-SVN: r87610
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/error.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 6c46adc..2979b3d 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-16 Andrew MacLeod <amacleod@redhat.com>
+
+ * error.c (dump_decl): Make sure there is lang_specific info before
+ checking for DTOR and CTOR decls.
+
2004-09-16 Nathan Sidwell <nathan@codesourcery.com>
* class.c (copy_virtuals): Remove.
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 03feaf3..dd6affa 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -831,10 +831,10 @@ dump_decl (tree t, int flags)
/* Fall through. */
case FUNCTION_DECL:
- if (DECL_GLOBAL_CTOR_P (t) || DECL_GLOBAL_DTOR_P (t))
- dump_global_iord (t);
- else if (! DECL_LANG_SPECIFIC (t))
+ if (! DECL_LANG_SPECIFIC (t))
pp_identifier (cxx_pp, "<built-in>");
+ else if (DECL_GLOBAL_CTOR_P (t) || DECL_GLOBAL_DTOR_P (t))
+ dump_global_iord (t);
else
dump_function_decl (t, flags);
break;