FreeBSD/contrib/gcc/cp/call.c
/* Initialize a temporary of type TYPE with EXPR.  The FLAGS are a
   bitwise or of LOOKUP_* values.  If any errors are warnings are
   generated, set *DIAGNOSTIC_FN to "error" or "warning",
   respectively.  If no diagnostics are generated, set *DIAGNOSTIC_FN
   to NULL.  */
Initialize a temporary of type TYPE with EXPR.  The FLAGS are a
bitwise or of LOOKUP_* values.  If any errors are warnings are
generated, set *DIAGNOSTIC_FN to "error" or "warning",
respectively.  If no diagnostics are generated, set *DIAGNOSTIC_FN
to NULL.
Initialize a temporary of type TYPE with EXPR . The FLAGS are a bitwise or of LOOKUP_ * values . If any errors are warnings are generated set * DIAGNOSTIC_FN to " error " or " warning " respectively . If no diagnostics are generated set * DIAGNOSTIC_FN to NULL .
static tree
build_temp (tree expr, tree type, int flags,
	    diagnostic_fn_t *diagnostic_fn)
{
  int savew, savee;
  savew = warningcount, savee = errorcount;
  expr = build_special_member_call (NULL_TREE,
				    complete_ctor_identifier,
				    build_tree_list (NULL_TREE, expr),
				    type, flags);
  if (warningcount > savew)
    *diagnostic_fn = warning0;
  else if (errorcount > savee)
    *diagnostic_fn = error;
  else
    *diagnostic_fn = NULL;
  return expr;
}
static tree build_temp ( tree expr , tree type , int flags , diagnostic_fn_t * diagnostic_fn ) { int savew , savee ; savew = warningcount , savee = errorcount ; expr = build_special_member_call ( NULL_TREE , complete_ctor_identifier , build_tree_list ( NULL_TREE , expr ) , type , flags ) ; if ( warningcount > savew ) * diagnostic_fn = warning0 ; else if ( errorcount > savee ) * diagnostic_fn = error ; else * diagnostic_fn = NULL ; return expr ; }
Initialize a temporary of type TYPE with EXPR.
Initialize a temporary of type TYPE with EXPR .