diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d35900a05de..ffea123f5f5d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-03-21 Mark Mitchell + + * 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 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to diff --git a/gcc/c-common.c b/gcc/c-common.c index f0ff8eb55fb0..6410e895426c 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -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");