Commit df1c5346 by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

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
parent 23ac7d7e
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> 2001-08-17 Richard Henderson <rth@redhat.com>
* class.c (emit_register_classes): Add align parameter to * class.c (emit_register_classes): Add align parameter to
......
...@@ -3584,7 +3584,8 @@ resolve_inner_class (circularity_hash, cl, enclosing, super, class_type) ...@@ -3584,7 +3584,8 @@ resolve_inner_class (circularity_hash, cl, enclosing, super, class_type)
IDENTIFIER_POINTER (DECL_NAME (local_enclosing))); IDENTIFIER_POINTER (DECL_NAME (local_enclosing)));
local_enclosing = NULL_TREE; local_enclosing = NULL_TREE;
} }
local_enclosing = local_super; else
local_enclosing = local_super;
} }
/* We failed. Return LOCAL_SUPER and LOCAL_ENCLOSING. */ /* We failed. Return LOCAL_SUPER and LOCAL_ENCLOSING. */
...@@ -15701,7 +15702,7 @@ purge_unchecked_exceptions (mdecl) ...@@ -15701,7 +15702,7 @@ purge_unchecked_exceptions (mdecl)
} }
/* This function goes over all of CLASS_TYPE ctors and checks whether /* 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' `throws' clause. If it's the case, it returns `true', `false'
otherwise. */ otherwise. */
......
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