From 3758425f53961334de12516f1ea598d4ee491ed6 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 16 Jul 2004 08:22:12 +0000 Subject: [PATCH] re PR c++/16583 (G++ segfaults with -fdump-translation-unit) PR c++/16583 * dump.c (cp_dump_tree): Don't dump the bases if there's no binfo. From-SVN: r84812 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/dump.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a2c540fbc09..d8aaf4ca5ab 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,9 @@ 2004-07-16 Nathan Sidwell + PR c++/16583 + * dump.c (cp_dump_tree): Don't dump the bases if there's no + binfo. + * pt.c (tsubst) : We should never get here. 2004-07-15 Mark Mitchell diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c index 64a462eb1a7..1669a96bbd7 100644 --- a/gcc/cp/dump.c +++ b/gcc/cp/dump.c @@ -264,7 +264,7 @@ cp_dump_tree (void* dump_info, tree t) if (CLASSTYPE_TEMPLATE_SPECIALIZATION(t)) dump_string(di, "spec"); - if (!dump_flag (di, TDF_SLIM, t)) + if (!dump_flag (di, TDF_SLIM, t) && TYPE_BINFO (t)) { int i; -- 2.30.2