diff options
author | Alexandre Petit-Bianco <apbianco@redhat.com> | 2001-08-22 08:27:35 -0700 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2001-08-22 08:27:35 -0700 |
commit | df1c53460d5984b21fa47e53ccccbb0d8e81ba80 (patch) | |
tree | e4e0aa17e1830778cb6da02666ce9a86429bb558 /gcc | |
parent | 23ac7d7e6cf498682f10f41ca85ea2981ec53c26 (diff) | |
download | gcc-df1c53460d5984b21fa47e53ccccbb0d8e81ba80.zip gcc-df1c53460d5984b21fa47e53ccccbb0d8e81ba80.tar.gz gcc-df1c53460d5984b21fa47e53ccccbb0d8e81ba80.tar.bz2 |
parse.y (resolve_inner_class): Keep local_enclosing to NULL if circularity is detected.
2001-08-22 Alexandre Petit-Bianco <apbianco@redhat.com>
* parse.y (resolve_inner_class): Keep local_enclosing to NULL if
circularity is detected.
(ctors_unchecked_throws_clause_p): Fixed leading comment.
(http://gcc.gnu.org/ml/gcc-patches/2001-08/msg01283.html)
From-SVN: r45109
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/java/parse.y | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 8c2b791..e763b18 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,9 @@ +2001-08-22 Alexandre Petit-Bianco <apbianco@redhat.com> + + * parse.y (resolve_inner_class): Keep local_enclosing to NULL if + circularity is detected. + (ctors_unchecked_throws_clause_p): Fixed leading comment. + 2001-08-17 Richard Henderson <rth@redhat.com> * class.c (emit_register_classes): Add align parameter to diff --git a/gcc/java/parse.y b/gcc/java/parse.y index b4eb930..d35a47d 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -3584,7 +3584,8 @@ resolve_inner_class (circularity_hash, cl, enclosing, super, class_type) IDENTIFIER_POINTER (DECL_NAME (local_enclosing))); local_enclosing = NULL_TREE; } - local_enclosing = local_super; + else + local_enclosing = local_super; } /* We failed. Return LOCAL_SUPER and LOCAL_ENCLOSING. */ @@ -15701,7 +15702,7 @@ purge_unchecked_exceptions (mdecl) } /* This function goes over all of CLASS_TYPE ctors and checks whether - each of then features at least one unchecked exception in it + each of them features at least one unchecked exception in its `throws' clause. If it's the case, it returns `true', `false' otherwise. */ |