Commit b8de2d02 by Mark Mitchell Committed by Mark Mitchell

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
parent 485976a9
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> 2000-03-21 Michael Meissner <meissner@redhat.com>
* config/alpha/alpha.md (floating point insns): Add TARGET_FP to * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
......
...@@ -2139,7 +2139,7 @@ c_expand_expr_stmt (expr) ...@@ -2139,7 +2139,7 @@ c_expand_expr_stmt (expr)
expr = default_conversion (expr); expr = default_conversion (expr);
if (TREE_TYPE (expr) != error_mark_node 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) && TREE_CODE (TREE_TYPE (expr)) != ARRAY_TYPE)
error ("expression statement has incomplete type"); error ("expression statement has incomplete type");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment