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
This commit is contained in:
Nathan Sidwell 2004-07-16 08:22:12 +00:00 committed by Nathan Sidwell
parent 00ca8311cf
commit 3758425f53
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,9 @@
2004-07-16 Nathan Sidwell <nathan@codesourcery.com>
PR c++/16583
* dump.c (cp_dump_tree): Don't dump the bases if there's no
binfo.
* pt.c (tsubst) <TREE_BINFO case>: We should never get here.
2004-07-15 Mark Mitchell <mark@codesourcery.com>

View file

@ -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;