Build AST, even if the select expression (->) is invalid.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 2 Dec 2008 13:00:49 +0000 (13:00 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 2 Dec 2008 13:00:49 +0000 (13:00 +0000)
[r24217]

parser.c

index da4e4b9..fef5897 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -7944,7 +7944,7 @@ static expression_t *parse_select_expression(expression_t *compound)
                               symbol, type_left);
                }
 create_error_entry:
-               return create_invalid_expression();
+               entry = create_error_entity(symbol, ENTITY_COMPOUND_MEMBER);
        }
 
        assert(is_declaration(entry));