This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Patch: fix for PR #33


I'm committing the appended patch.  It fixes Java PR 33.  In certain
situations the Java front end didn't recognize that "Class.member++"
was valid.

1999-09-03  Tom Tromey  <tromey@cygnus.com>

	* parse.y (strip_out_static_field_access_decl): Return operand if
	it satisfies JDECL_P.

Tom

Index: gcc/java/parse.y
===================================================================
RCS file: /cvs/egcs/egcs/gcc/java/parse.y,v
retrieving revision 1.107
diff -u -r1.107 parse.y
--- parse.y	1999/09/02 21:57:08	1.107
+++ parse.y	1999/09/03 17:08:22
@@ -6585,6 +6585,8 @@
 	       == soft_initclass_node)
 	     return TREE_OPERAND (op1, 1);
 	 }
+      else if (JDECL_P (op1))
+	return op1;
     }
   return node;
 }


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