From 8a827ab215ae56bffe371504040242c4ccb431aa Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 22 Jan 2002 11:05:50 -0500 Subject: [PATCH] c-semantics.c (genrtl_compound_stmt): Only check nesting consistency if this COMPOUND_STMT is scoped. * c-semantics.c (genrtl_compound_stmt): Only check nesting consistency if this COMPOUND_STMT is scoped. From-SVN: r49077 --- gcc/ChangeLog | 5 +++++ gcc/c-semantics.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index db51fc63dd5..18cbc6437cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-01-22 Jason Merrill + + * c-semantics.c (genrtl_compound_stmt): Only check nesting + consistency if this COMPOUND_STMT is scoped. + 2002-01-22 Kazu Hirata * predict.c: Fix formatting. diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index 682943f17c2..eb5af2a76ae 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -700,7 +700,7 @@ genrtl_compound_stmt (t) #ifdef ENABLE_CHECKING /* Make sure that we've pushed and popped the same number of levels. */ - if (n != current_nesting_level ()) + if (!COMPOUND_STMT_NO_SCOPE (t) && n != current_nesting_level ()) abort (); #endif } -- 2.30.2