Commit 3758425f by Nathan Sidwell Committed by Nathan Sidwell

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
parent 00ca8311
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>
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment