diff options
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index c368a1c..519c1d6 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -7163,6 +7163,7 @@ cp_parser_selection_statement (cp_parser* parser, bool *if_p) if (!cp_lexer_next_token_is_keyword (parser->lexer, RID_ELSE)) warning_at (loc, OPT_Wempty_body, "suggest braces around " "empty body in an %<if%> statement"); + nested_if = false; } else cp_parser_implicitly_scoped_statement (parser, &nested_if); |