Commit c3d5c3fa by Zack Weinberg Committed by Zack Weinberg

c-typeck.c (require_complete_type): Return error_mark_node if type is error_mark_node.

	* c-typeck.c (require_complete_type): Return error_mark_node
	if type is error_mark_node.

From-SVN: r49150
parent d55ecaa4
2002-01-23 Zack Weinberg <zack@codesourcery.com>
* c-typeck.c (require_complete_type): Return error_mark_node
if type is error_mark_node.
2002-01-23 Janis Johnson <janis187@us.ibm.com>
* toplev.c (process_options): Disable -fprefetch-loop-arrays with
......
......@@ -93,7 +93,7 @@ require_complete_type (value)
{
tree type = TREE_TYPE (value);
if (TREE_CODE (value) == ERROR_MARK)
if (value == error_mark_node || type == error_mark_node)
return error_mark_node;
/* First, detect a valid value with a complete 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