contrib/gcc-4.4/gcc/cp/call.c
/* We want the address of a function or method.  We avoid creating a
   pointer-to-member function.  */
We want the address of a function or method.  We avoid creating a
pointer-to-member function.
We want the address of a function or method . We avoid creating a pointer - to - member function .
tree
build_addr_func (tree function)
{
  tree type = TREE_TYPE (function);
  if (TREE_CODE (type) == METHOD_TYPE)
    {
      if (TREE_CODE (function) == OFFSET_REF)
	{
	  tree object = build_address (TREE_OPERAND (function, 0));
	  return get_member_function_from_ptrfunc (&object,
						   TREE_OPERAND (function, 1));
	}
      function = build_address (function);
    }
  else
    function = decay_conversion (function);
  return function;
}
tree build_addr_func ( tree function ) { tree type = TREE_TYPE ( function ) ; if ( TREE_CODE ( type ) == METHOD_TYPE ) { if ( TREE_CODE ( function ) == OFFSET_REF ) { tree object = build_address ( TREE_OPERAND ( function , 0 ) ) ; return get_member_function_from_ptrfunc ( & object , TREE_OPERAND ( function , 1 ) ) ; } function = build_address ( function ) ; } else function = decay_conversion ( function ) ; return function ; }
We want the address of a function or method.
We want the address of a function or method .
/* We have to do these by hand to avoid real pointer to member
     functions.  */