From 9f175208940aa2112b07e440e7601a662a3a1a52 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 17 Dec 2002 01:24:02 -0500 Subject: c-semantics.c (add_scope_stmt): Abort if the end SCOPE_STMT doesn't match the begin SCOPE_STMT in partialness. * c-semantics.c (add_scope_stmt): Abort if the end SCOPE_STMT doesn't match the begin SCOPE_STMT in partialness. cp/ * semantics.c (do_pushlevel): Call pushlevel after adding the SCOPE_STMT. (do_poplevel): Call poplevel before adding the SCOPE_STMT. * parse.y (function_body): Go back to using compstmt. * decl.c (pushdecl): Skip another level to get to the parms level. * call.c (build_new_method_call): Use is_dummy_object to determine whether or not to evaluate the object parameter to a static member function. From-SVN: r60196 --- gcc/c-semantics.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/c-semantics.c') diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index 0b8f587..77d7384 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -146,6 +146,8 @@ add_scope_stmt (begin_p, partial_p) } else { + if (partial_p != SCOPE_PARTIAL_P (TREE_PURPOSE (top))) + abort (); TREE_VALUE (top) = ss; *stack_ptr = TREE_CHAIN (top); } -- cgit v1.1