decl.c (struct named_label_list): Rename eh_region to in_try_scope, add in_catch_scope.
* decl.c (struct named_label_list): Rename eh_region to in_try_scope, add in_catch_scope. (struct binding_level): Rename eh_region to is_try_scope, add is_catch_scope. (note_level_for_try): Rename from note_level_for_eh. (note_level_for_catch): New. (poplevel): Copy both is_try_scope and is_catch_scope to the named_label_list struct. (check_previous_goto_1): Don't check for catch block via DECL_ARTIFICIAL; use in_try_scope instead. (check_goto): Likewise. * cp-tree.h (note_level_for_try, note_level_for_catch): Declare. * except.c (expand_start_catch_block): Call note_level_for_catch. * semantics.c (begin_compound_stmt): Update for note_level_for_try. From-SVN: r40920
Showing
Please
register
or
sign in
to comment