This is the mail archive of the java-patches@gcc.gnu.org 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]
Other format: [Raw text]

Patch: FYI: fix class of THIS_EXPR


I'm checking this in on the trunk.

At some point gcj started crashing when tree-dumping was enabled.
This occurred because THIS_EXPR had no arguments but claimed to be
tcc_unary.  This seemed wrong to me, and changing it to
tcc_expression fixed the crash.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* java-tree.def (THIS_EXPR): Now a tcc_expression.

Index: java-tree.def
===================================================================
--- java-tree.def	(revision 113470)
+++ java-tree.def	(working copy)
@@ -39,7 +39,7 @@
 DEFTREECODE (NEW_CLASS_EXPR, "new_class_expr", tcc_expression, 3)
 
 /* Defines `this' as an expression.  */
-DEFTREECODE (THIS_EXPR, "this", tcc_unary, 0)
+DEFTREECODE (THIS_EXPR, "this", tcc_expression, 0)
 
 /* A labeled block. Operand 0 is the label that will be generated to
    mark the end of the block.  Operand 1 is the labeled block body.  */


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