From: Nathan Sidwell Date: Fri, 16 Jul 2004 08:22:12 +0000 (+0000) Subject: re PR c++/16583 (G++ segfaults with -fdump-translation-unit) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3758425f53961334de12516f1ea598d4ee491ed6;p=gcc.git 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 --- 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;