This is the mail archive of the java-prs@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcj/56


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;
 
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]