diff options
author | Jason Merrill <jason@redhat.com> | 2002-12-17 01:24:02 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2002-12-17 01:24:02 -0500 |
commit | 9f175208940aa2112b07e440e7601a662a3a1a52 (patch) | |
tree | dcfd0036884e5fabefd7fb68dda94834b0cfe2e1 /gcc/c-semantics.c | |
parent | c79d892f6408c9308bab00b37f718e077f960daa (diff) | |
download | gcc-9f175208940aa2112b07e440e7601a662a3a1a52.zip gcc-9f175208940aa2112b07e440e7601a662a3a1a52.tar.gz gcc-9f175208940aa2112b07e440e7601a662a3a1a52.tar.bz2 |
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
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r-- | gcc/c-semantics.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |