OSDN Git Service

PR c++/16583
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Jul 2004 08:22:12 +0000 (08:22 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Jul 2004 08:22:12 +0000 (08:22 +0000)
* dump.c (cp_dump_tree): Don't dump the bases if there's no
binfo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84812 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/dump.c

index a2c540f..d8aaf4c 100644 (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>
index 64a462e..1669a96 100644 (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;