FreeBSD/contrib/gcc/cp/typeck.c
/* Like complete_type, but issue an error if the TYPE cannot be completed.
   VALUE is used for informative diagnostics.
   Returns NULL_TREE if the type cannot be made complete.  */
Like complete_type, but issue an error if the TYPE cannot be completed.
VALUE is used for informative diagnostics.
Returns NULL_TREE if the type cannot be made complete.
Like complete_type but issue an error if the TYPE cannot be completed . VALUE is used for informative diagnostics . Returns NULL_TREE if the type cannot be made complete .
tree
complete_type_or_else (tree type, tree value)
{
  type = complete_type (type);
  if (type == error_mark_node)
    return NULL_TREE;
  else if (!COMPLETE_TYPE_P (type))
    {
      cxx_incomplete_type_diagnostic (value, type, 0);
      return NULL_TREE;
    }
  else
    return type;
}
tree complete_type_or_else ( tree type , tree value ) { type = complete_type ( type ) ; if ( type == error_mark_node ) return NULL_TREE ; else if ( ! COMPLETE_TYPE_P ( type ) ) { cxx_incomplete_type_diagnostic ( value , type , 0 ) ; return NULL_TREE ; } else return type ; }
Like complete_type, but issue an error if the TYPE cannot be completed.
Like complete_type but issue an error if the TYPE cannot be completed .
/* We already issued an error.  */