* c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
not COMPLETE_TYPE_P, to check the type of the expression.
From-SVN: r32674
+2000-03-21 Mark Mitchell <mark@codesourcery.com>
+
+ * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
+ not COMPLETE_TYPE_P, to check the type of the expression.
+
2000-03-21 Michael Meissner <meissner@redhat.com>
* config/alpha/alpha.md (floating point insns): Add TARGET_FP to
expr = default_conversion (expr);
if (TREE_TYPE (expr) != error_mark_node
- && !COMPLETE_TYPE_P (TREE_TYPE (expr))
+ && !COMPLETE_OR_VOID_TYPE_P (TREE_TYPE (expr))
&& TREE_CODE (TREE_TYPE (expr)) != ARRAY_TYPE)
error ("expression statement has incomplete type");