From 09bb35141dba0180fed9ecc1d20cc6c78c220172 Mon Sep 17 00:00:00 2001 From: apbianco Date: Thu, 1 Jun 2000 07:44:58 +0000 Subject: 2000-04-24 Alexandre Petit-Bianco * class.c (common_enclosing_context_p): New function. * java-tree.h (common_enclosing_context_p): Added prototype. * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Relaxed test to allow classes sharing an outer context with the current instance. * parse.y (build_access_to_thisn): Fixed leading comment. (verify_constructor_super): New local `supper_inner'. Skip enclosing context argument in the case of inner class constructors. (patch_method_invocation): Insert proper context as second parameter to pure inner class constructor super invocations. This fixes the Java PR #177. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34332 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/java/java-tree.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/java/java-tree.h') diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index a05573f12e1..8f2b2c82503 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -696,6 +696,7 @@ extern void set_super_info PARAMS ((int, tree, tree, int)); extern int get_access_flags_from_decl PARAMS ((tree)); extern int interface_of_p PARAMS ((tree, tree)); extern int inherits_from_p PARAMS ((tree, tree)); +extern int common_enclosing_context_p PARAMS ((tree, tree)); extern int enclosing_context_p PARAMS ((tree, tree)); extern void complete_start_java_method PARAMS ((tree)); extern tree build_result_decl PARAMS ((tree)); -- cgit v1.2.3