[PATCH] Fix for net PR #56.

Alexandre Petit-Bianco apbianco@cygnus.com
Thu Oct 21 23:13:00 GMT 1999


I checked in this patch to fix the net PR #56:

  http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00131.html

./A

Thu Oct 21 01:27:31 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (resolve_qualified_expression_name): Handle MODIFY_EXPR.
	(qualify_ambiguous_name): Likewise.

Index: parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -p -r1.113 -r1.114
--- parse.y	1999/10/22 05:27:34	1.113
+++ parse.y	1999/10/22 06:06:47	1.114
@@ -6675,6 +6675,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;
@@ -7858,11 +7859,7 @@ qualify_ambiguous_name (id)
 	&& TREE_CODE (TREE_TYPE (qual_wfl)) == EXPR_WITH_FILE_LOCATION)
       name = EXPR_WFL_NODE (TREE_TYPE (qual_wfl));
 
-    else if (code == ARRAY_REF &&
-	     TREE_CODE (TREE_OPERAND (qual_wfl, 0)) == EXPR_WITH_FILE_LOCATION)
-      name = EXPR_WFL_NODE (TREE_OPERAND (qual_wfl, 0));
-
-    else if (code == CALL_EXPR && 
+    else if ((code == ARRAY_REF || code == CALL_EXPR || code == MODIFY_EXPR) &&
 	     TREE_CODE (TREE_OPERAND (qual_wfl, 0)) == EXPR_WITH_FILE_LOCATION)
       name = EXPR_WFL_NODE (TREE_OPERAND (qual_wfl, 0));
 


More information about the Gcc-patches mailing list