c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P...

* 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
This commit is contained in:
Mark Mitchell 2000-03-21 19:33:42 +00:00 committed by Mark Mitchell
parent 485976a9f5
commit b8de2d021a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -2139,7 +2139,7 @@ c_expand_expr_stmt (expr)
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");