aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-03-21 19:33:42 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-03-21 19:33:42 +0000
commitb8de2d021a0d6798e4b611078c667a6ac7f81a67 (patch)
treebe0e8ff6ba8473ba8d3d2b04e2e107498102b3fc /gcc/c-common.c
parent485976a9f587ade39ad0cf14cbbab518221003db (diff)
downloadgcc-b8de2d021a0d6798e4b611078c667a6ac7f81a67.zip
gcc-b8de2d021a0d6798e4b611078c667a6ac7f81a67.tar.gz
gcc-b8de2d021a0d6798e4b611078c667a6ac7f81a67.tar.bz2
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
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index f0ff8eb..6410e89 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");