diff options
author | Per Bothner <bothner@kalessin.cygnus.com> | 1995-08-25 19:07:05 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-08-25 19:07:05 -0400 |
commit | c7fdde6d53f983f994c4ae20de240e7443cb5d1b (patch) | |
tree | c73d16a6f7cdd0151eb005a1fffd07cfca4999ed | |
parent | f3be9e3c336718ee354a5a76eff94315ee2eac9a (diff) | |
download | gcc-c7fdde6d53f983f994c4ae20de240e7443cb5d1b.zip gcc-c7fdde6d53f983f994c4ae20de240e7443cb5d1b.tar.gz gcc-c7fdde6d53f983f994c4ae20de240e7443cb5d1b.tar.bz2 |
(FOR): Call note_level_for_for.
From-SVN: r10276
-rw-r--r-- | gcc/cp/parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index ad898e9..895abaa 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -55,7 +55,6 @@ extern int errno; extern int end_of_file; extern int current_class_depth; -extern int flag_new_for_scope; void yyerror (); @@ -3246,10 +3245,11 @@ simple_stmt: finish_stmt (); } | FOR { emit_line_note (input_filename, lineno); - if (flag_new_for_scope) + if (flag_new_for_scope > 0) { /* Conditionalize .pushlevel */ pushlevel (0); + note_level_for_for (); clear_last_expr (); push_momentary (); expand_start_bindings (0); @@ -3272,7 +3272,7 @@ simple_stmt: if ($10) cplus_expand_expr_stmt ($10); pop_momentary (); expand_end_loop (); - if (flag_new_for_scope) + if (flag_new_for_scope > 0) { expand_end_bindings (getdecls (), kept_level_p (), 1); poplevel (kept_level_p (), 1, 0); |