Commit 324ed8fd by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

re GNATS gcj/172 (compiler rejects inner-class argument to inner-class constructor)

Tue Mar 14 17:15:41 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (register_incomplete_type): Fixed initialization of
	JDEP_ENCLOSING.

(This is a fix to the gcj PR #172:
 http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00169.html)

From-SVN: r32556
parent 368cdff8
Tue Mar 14 17:15:41 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (register_incomplete_type): Fixed initialization of
JDEP_ENCLOSING.
2000-02-14 Andrew Haley <aph@cygnus.com> 2000-02-14 Andrew Haley <aph@cygnus.com>
* check-init.c (check_init): Add new cases for unary and binary * check-init.c (check_init): Add new cases for unary and binary
......
...@@ -7581,7 +7581,8 @@ register_incomplete_type (kind, wfl, decl, ptr) ...@@ -7581,7 +7581,8 @@ register_incomplete_type (kind, wfl, decl, ptr)
JDEP_WFL (new) = wfl; JDEP_WFL (new) = wfl;
JDEP_CHAIN (new) = NULL; JDEP_CHAIN (new) = NULL;
JDEP_MISC (new) = NULL_TREE; JDEP_MISC (new) = NULL_TREE;
JDEP_ENCLOSING (new) = GET_CPC (); if(!(JDEP_ENCLOSING (new) = GET_ENCLOSING_CPC_CONTEXT ()))
JDEP_ENCLOSING (new) = GET_CPC ();
JDEP_GET_PATCH (new) = (tree *)NULL; JDEP_GET_PATCH (new) = (tree *)NULL;
JDEP_INSERT (ctxp->classd_list, new); JDEP_INSERT (ctxp->classd_list, new);
......
...@@ -4883,7 +4883,8 @@ register_incomplete_type (kind, wfl, decl, ptr) ...@@ -4883,7 +4883,8 @@ register_incomplete_type (kind, wfl, decl, ptr)
JDEP_WFL (new) = wfl; JDEP_WFL (new) = wfl;
JDEP_CHAIN (new) = NULL; JDEP_CHAIN (new) = NULL;
JDEP_MISC (new) = NULL_TREE; JDEP_MISC (new) = NULL_TREE;
JDEP_ENCLOSING (new) = GET_CPC (); if(!(JDEP_ENCLOSING (new) = GET_ENCLOSING_CPC_CONTEXT ()))
JDEP_ENCLOSING (new) = GET_CPC ();
JDEP_GET_PATCH (new) = (tree *)NULL; JDEP_GET_PATCH (new) = (tree *)NULL;
JDEP_INSERT (ctxp->classd_list, new); JDEP_INSERT (ctxp->classd_list, new);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment