re GNATS gcj/207 (Compiler failure)

Thu Apr 27 17:47:34 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* jcf-parse.c (jcf_parse_source): Reset current_class and
 	current_function_decl to NULL before parsing a new file.

(This fixes the PR gcj/207:
 http://sourceware.cygnus.com/ml/java-prs/2000-q2/msg00044.html)

From-SVN: r34343
This commit is contained in:
Alexandre Petit-Bianco 2000-06-01 18:26:16 +00:00 committed by Alexandre Petit-Bianco
parent eb9c1bb6e2
commit 0ba154aa23
2 changed files with 7 additions and 0 deletions

View File

@ -46,6 +46,11 @@
one.)
(resolve_qualified_expression_name): Fixed comment.
Thu Apr 27 17:47:34 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
* jcf-parse.c (jcf_parse_source): Reset current_class and
current_function_decl to NULL before parsing a new file.
Thu Apr 27 17:25:33 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (block_end:): If the collected block doesn't feature a

View File

@ -570,6 +570,8 @@ jcf_parse_source ()
java_push_parser_context ();
input_filename = current_jcf->filename;
file = get_identifier (input_filename);
current_class = NULL_TREE;
current_function_decl = NULL_TREE;
if (!HAS_BEEN_ALREADY_PARSED_P (file))
{
if (!(finput = fopen (input_filename, "r")))