summaryrefslogtreecommitdiff
path: root/gcc/c-typeck.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-23 19:30:49 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-23 19:30:49 +0000
commit5601fc98b94b0fb6d3308a02db0afa2a5069cd72 (patch)
treef12a0a4f5120c31b45b6bf3c15e52f7b7b8860d6 /gcc/c-typeck.c
parenta56c693310df808b2701d52e8388a91d254a7f99 (diff)
downloadgcc-5601fc98b94b0fb6d3308a02db0afa2a5069cd72.tar.gz
* c-typeck.c (require_complete_type): Return error_mark_node
if type is error_mark_node. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49150 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r--gcc/c-typeck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index a1a00fcefe1..37f6a8779e5 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -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. */