FreeBSD/contrib/gcc/cp/call.c
/* Returns nonzero if T1 is reference-related to T2.  */
Returns nonzero if T1 is reference-related to T2.
Returns nonzero if T1 is reference - related to T2 .
static bool
reference_related_p (tree t1, tree t2)
{
  t1 = TYPE_MAIN_VARIANT (t1);
  t2 = TYPE_MAIN_VARIANT (t2);
  return (same_type_p (t1, t2)
	  || (CLASS_TYPE_P (t1) && CLASS_TYPE_P (t2)
	      && DERIVED_FROM_P (t1, t2)));
}
static bool reference_related_p ( tree t1 , tree t2 ) { t1 = TYPE_MAIN_VARIANT ( t1 ) ; t2 = TYPE_MAIN_VARIANT ( t2 ) ; return ( same_type_p ( t1 , t2 ) || ( CLASS_TYPE_P ( t1 ) && CLASS_TYPE_P ( t2 ) && DERIVED_FROM_P ( t1 , t2 ) ) ) ; }
Returns nonzero if T1 is reference-related to T2.
Returns nonzero if T1 is reference - related to T2 .
/* [dcl.init.ref]

     Given types "cv1 T1" and "cv2 T2," "cv1 T1" is reference-related
     to "cv2 T2" if T1 is the same type as T2, or T1 is a base class
     of T2.  */