c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P...
authorMark Mitchell <mark@codesourcery.com>
Tue, 21 Mar 2000 19:33:42 +0000 (19:33 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 21 Mar 2000 19:33:42 +0000 (19:33 +0000)
* 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

gcc/ChangeLog
gcc/c-common.c

index 1d35900a05de304ebf215dae0016c81e63e35d05..ffea123f5f5dd01da6d46f9fb48f0183d75c5dad 100644 (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
index f0ff8eb55fb0660b16349a4cf6d1202d4571e747..6410e895426cce0cadc6cb06e6f4d9cfe2061fe2 100644 (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");