* dbxout.c (dbxout_type): For a RECORD_TYPE, check that TYPE_BINFO
is a TREE_VEC before trying to use it for baseclasses.
(Chill uses the same field for a different purpose.)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17534
138bc75d-0d04-0410-961f-
82ee72b054a4
{
int i, n_baseclasses = 0;
- if (TYPE_BINFO (type) != 0 && TYPE_BINFO_BASETYPES (type) != 0)
+ if (TYPE_BINFO (type) != 0
+ && TREE_CODE (TYPE_BINFO (type)) == TREE_VEC
+ && TYPE_BINFO_BASETYPES (type) != 0)
n_baseclasses = TREE_VEC_LENGTH (TYPE_BINFO_BASETYPES (type));
/* Output a structure type. We must use the same test here as we