Commit 18ba380b by Jason Merrill Committed by Jason Merrill

semantics.c (begin_for_stmt): Push the 'for' scope before adding the FOR_STMT.

        * semantics.c (begin_for_stmt): Push the 'for' scope before
        adding the FOR_STMT.

From-SVN: r54749
parent e3c8eb86
2002-06-14 Jason Merrill <jason@redhat.com> 2002-06-14 Jason Merrill <jason@redhat.com>
* semantics.c (begin_for_stmt): Push the 'for' scope before
adding the FOR_STMT.
C++ ABI changes. C++ ABI changes.
* class.c (build_base_field): Set DECL_PACKED. * class.c (build_base_field): Set DECL_PACKED.
(layout_class_type): Don't use tail padding of PODs. (layout_class_type): Don't use tail padding of PODs.
......
...@@ -417,12 +417,12 @@ begin_for_stmt () ...@@ -417,12 +417,12 @@ begin_for_stmt ()
r = build_stmt (FOR_STMT, NULL_TREE, NULL_TREE, r = build_stmt (FOR_STMT, NULL_TREE, NULL_TREE,
NULL_TREE, NULL_TREE); NULL_TREE, NULL_TREE);
NEW_FOR_SCOPE_P (r) = flag_new_for_scope > 0; NEW_FOR_SCOPE_P (r) = flag_new_for_scope > 0;
add_stmt (r);
if (NEW_FOR_SCOPE_P (r)) if (NEW_FOR_SCOPE_P (r))
{ {
do_pushlevel (); do_pushlevel ();
note_level_for_for (); note_level_for_for ();
} }
add_stmt (r);
return r; return r;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment