FreeBSD/contrib/gcc/cp/class.c
/* Note that NAME was looked up while the current class was being
   defined and that the result of that lookup was DECL.  */
Note that NAME was looked up while the current class was being
defined and that the result of that lookup was DECL.
Note that NAME was looked up while the current class was being defined and that the result of that lookup was DECL .
void
maybe_note_name_used_in_class (tree name, tree decl)
{
  splay_tree names_used;
  if (!(innermost_scope_kind() == sk_class
	&& TYPE_BEING_DEFINED (current_class_type)))
    return;
  if (lookup_member (current_class_type, name,
		     0, false))
    return;
  if (!current_class_stack[current_class_depth - 1].names_used)
    current_class_stack[current_class_depth - 1].names_used
      = splay_tree_new (splay_tree_compare_pointers, 0, 0);
  names_used = current_class_stack[current_class_depth - 1].names_used;
  splay_tree_insert (names_used,
		     (splay_tree_key) name,
		     (splay_tree_value) decl);
}
void maybe_note_name_used_in_class ( tree name , tree decl ) { splay_tree names_used ; if ( ! ( innermost_scope_kind ( ) == sk_class && TYPE_BEING_DEFINED ( current_class_type ) ) ) return ; if ( lookup_member ( current_class_type , name , 0 , false ) ) return ; if ( ! current_class_stack [ current_class_depth - 1 ] . names_used ) current_class_stack [ current_class_depth - 1 ] . names_used = splay_tree_new ( splay_tree_compare_pointers , 0 , 0 ) ; names_used = current_class_stack [ current_class_depth - 1 ] . names_used ; splay_tree_insert ( names_used , ( splay_tree_key ) name , ( splay_tree_value ) decl ) ; }
Note that NAME was looked up while the current class was being
defined and that the result of that lookup was DECL.
Note that NAME was looked up while the current class was being defined and that the result of that lookup was DECL .
/* If we're not defining a class, there's nothing to do.  */ /* If there's already a binding for this NAME, then we don't have
     anything to worry about.  */ /*protect=*/ /*want_type=*/