contrib/gnu/gcc/dist/gcc/cp/class.c
/* Returns TRUE if DERIVED is a binfo containing the binfo BASE as a
   subobject.  */
Returns TRUE if DERIVED is a binfo containing the binfo BASE as a
subobject.
Returns TRUE if DERIVED is a binfo containing the binfo BASE as a subobject .
static bool
base_derived_from (tree derived, tree base)
{
  tree probe;
  for (probe = base; probe; probe = BINFO_INHERITANCE_CHAIN (probe))
    {
      if (probe == derived)
	return true;
      else if (BINFO_VIRTUAL_P (probe))
	return (binfo_for_vbase (BINFO_TYPE (probe), BINFO_TYPE (derived))
		!= NULL_TREE);
    }
  return false;
}
static bool base_derived_from ( tree derived , tree base ) { tree probe ; for ( probe = base ; probe ; probe = BINFO_INHERITANCE_CHAIN ( probe ) ) { if ( probe == derived ) return true ; else if ( BINFO_VIRTUAL_P ( probe ) ) return ( binfo_for_vbase ( BINFO_TYPE ( probe ) , BINFO_TYPE ( derived ) ) != NULL_TREE ) ; } return false ; }
Returns TRUE if DERIVED is a binfo containing the binfo BASE as a
subobject.
Returns TRUE if DERIVED is a binfo containing the binfo BASE as a subobject .
/* If we meet a virtual base, we can't follow the inheritance
	   any more.  See if the complete type of DERIVED contains
	   such a virtual base.  */