From: jason Date: Tue, 18 Jun 2002 16:21:25 +0000 (+0000) Subject: * semantics.c (begin_for_stmt): Push the 'for' scope before X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08f8bf81018d08ca6084feb1c35972c58ada65d0;p=thirdparty%2Fgcc.git * semantics.c (begin_for_stmt): Push the 'for' scope before adding the FOR_STMT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54749 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 21ced62e8408..2572a5627ba5 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2002-06-14 Jason Merrill + * semantics.c (begin_for_stmt): Push the 'for' scope before + adding the FOR_STMT. + C++ ABI changes. * class.c (build_base_field): Set DECL_PACKED. (layout_class_type): Don't use tail padding of PODs. diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index bbc22037ecef..c6c304753f39 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -417,12 +417,12 @@ begin_for_stmt () r = build_stmt (FOR_STMT, NULL_TREE, NULL_TREE, NULL_TREE, NULL_TREE); NEW_FOR_SCOPE_P (r) = flag_new_for_scope > 0; - add_stmt (r); if (NEW_FOR_SCOPE_P (r)) { do_pushlevel (); note_level_for_for (); } + add_stmt (r); return r; }