+2000-03-17 Nathan Sidwell <nathan@codesourcery.com>
+
+ * typeck.c (require_complete_type): Don't assume size_zero_node.
+ (complete_type_or_else): Likewise.
+
2000-03-16 Steven Grady <grady@digitaldeck.com>
Jason Merrill <jason@casey.cygnus.com>
type = TREE_TYPE (value);
/* First, detect a valid value with a complete type. */
- if (TYPE_SIZE (type) != 0
- && TYPE_SIZE (type) != size_zero_node)
+ if (TYPE_SIZE (type) && !integer_zerop (TYPE_SIZE (type)))
return value;
/* If we see X::Y, we build an OFFSET_TYPE which has
if (type == error_mark_node)
/* We already issued an error. */
return NULL_TREE;
- else if (!TYPE_SIZE (type) || TYPE_SIZE (type) == size_zero_node)
+ else if (!TYPE_SIZE (type) || integer_zerop (TYPE_SIZE (type)))
{
incomplete_type_error (value, type);
return NULL_TREE;