mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-31 22:59:52 +08:00
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:
parent
485976a9f5
commit
b8de2d021a
@ -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
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user