diff options
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r-- | gcc/c-typeck.c | 2 |
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. */ |