summaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-01 18:26:16 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-01 18:26:16 +0000
commit21c00a5ad6ef7590e0028e870259cb93561bb72f (patch)
treef672448a1bddc5c36b262cc8a1ba366e354268b8 /gcc/java/jcf-parse.c
parent681adc7c84451df2b282ea5f725ad3ebcfd42526 (diff)
downloadgcc-21c00a5ad6ef7590e0028e870259cb93561bb72f.tar.gz
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) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34343 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r--gcc/java/jcf-parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index cd0f283f81d..6ef02bc9da7 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -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")))