diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2000-03-15 09:30:39 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-03-15 01:30:39 -0800 |
commit | 324ed8fdf2a3a7a6509ae1db9ca6bf877e24b96c (patch) | |
tree | a85bf2c9d9e3b820ebbffa808b03043e4503943e /gcc/java/parse.c | |
parent | 368cdff873dcbf43e3aa9af528f7571a6819e61f (diff) | |
download | gcc-324ed8fdf2a3a7a6509ae1db9ca6bf877e24b96c.zip gcc-324ed8fdf2a3a7a6509ae1db9ca6bf877e24b96c.tar.gz gcc-324ed8fdf2a3a7a6509ae1db9ca6bf877e24b96c.tar.bz2 |
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
Diffstat (limited to 'gcc/java/parse.c')
-rw-r--r-- | gcc/java/parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/parse.c b/gcc/java/parse.c index bb08b44..f4d3143 100644 --- a/gcc/java/parse.c +++ b/gcc/java/parse.c @@ -7581,7 +7581,8 @@ register_incomplete_type (kind, wfl, decl, ptr) JDEP_WFL (new) = wfl; JDEP_CHAIN (new) = NULL; 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_INSERT (ctxp->classd_list, new); |