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:
parent
d55ecaa4f6
commit
c3d5c3faeb
@ -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
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user