This is the mail archive of the
java-prs@sourceware.cygnus.com
mailing list for the Java project.
Re: gcj/56
- To: apbianco at cygnus dot com
- Subject: Re: gcj/56
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: 22 Oct 1999 05:20:00 -0000
- Cc: java-prs at sourceware dot cygnus dot com,
- Reply-To: Alexandre Petit-Bianco <apbianco at cygnus dot com>
The following reply was made to PR gcj/56; it has been noted by GNATS.
From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: java-gnats@sourceware.cygnus.com
Cc:
Subject: Re: gcj/56
Date: Thu, 21 Oct 1999 22:17:21 -0700
Bryce McKinlay writes:
> This patch doesn't work for me. jc1 no longer segfaults, but an
> error is incorrectly reported for my test case:
> Bar.java: In class `Bar':
> Bar.java: In method `bar()':
> Bar.java:9: Variable `a' may not have been initialized.
> c = (a = b).someint;
> ^
> 1 error
Yes, I overlooked the compilation output. Try this patch.
./A
Index: parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.112
diff -u -p -r1.112 parse.y
--- parse.y 1999/10/14 17:13:56 1.112
+++ parse.y 1999/10/22 04:24:47
@@ -6675,6 +6676,7 @@ resolve_qualified_expression_name (wfl,
case CONDITIONAL_EXPR:
case STRING_CST:
+ case MODIFY_EXPR:
*where_found = decl = java_complete_tree (qual_wfl);
if (decl == error_mark_node)
return 1;