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
This commit is contained in:
Alexandre Petit-Bianco 2001-08-22 08:27:35 -07:00 committed by Alexandre Petit-Bianco
parent 23ac7d7e6c
commit df1c53460d
2 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -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. */