From 66fc77bc4b691d3d51e5857b28d4c5a67f357671 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Wed, 25 Apr 2012 21:33:29 +0200 Subject: [PATCH] Do not return an error statement from parse_ms_try_statment(), just keep on parsing. --- parser.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/parser.c b/parser.c index f89e693..1216d10 100644 --- a/parser.c +++ b/parser.c @@ -9864,13 +9864,10 @@ static statement_t *parse_ms_try_statment(void) type = type_error_type; } statement->ms_try.except_expression = create_implicit_cast(expr, type); - statement->ms_try.final_statement = parse_compound_statement(false); - } else if (next_if(T__finally)) { - statement->ms_try.final_statement = parse_compound_statement(false); - } else { + } else if (!next_if(T__finally)) { parse_error_expected("while parsing __try statement", T___except, T___finally, NULL); - return create_error_statement(); } + statement->ms_try.final_statement = parse_compound_statement(false); return statement; } -- 2.20.1