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
This commit is contained in:
Zack Weinberg 2002-01-23 19:30:49 +00:00 committed by Zack Weinberg
parent d55ecaa4f6
commit c3d5c3faeb
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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. */