diff options
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 2b45260..3493e44 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -22494,7 +22494,8 @@ cp_parser_objc_class_ivars (cp_parser* parser) NULL_TREE, attributes); /* Add the instance variable. */ - objc_add_instance_variable (decl); + if (decl != error_mark_node && decl != NULL_TREE) + objc_add_instance_variable (decl); /* Reset PREFIX_ATTRIBUTES. */ while (attributes && TREE_CHAIN (attributes) != first_attribute) |