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]

[gcjx] Patch: FYI: end-of-constructor location


I'm checking this in on the gcjx branch.

This fixes a little bug in a model_constructor constructor.  We were
calling get_location() on the wrong object, ultimately leading to
crashes when a constructor made this way was lowered to trees.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* model/constructor.cc (model_constructor): Copy location of other
	constructor.

Index: model/constructor.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/model/Attic/constructor.cc,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 constructor.cc
--- model/constructor.cc 12 Mar 2005 20:51:07 -0000 1.1.2.2
+++ model/constructor.cc 27 Mar 2005 04:59:45 -0000
@@ -38,7 +38,7 @@
 }
 
 model_constructor::model_constructor (model_constructor *other)
-  : model_method (get_location (), other->get_declaring_class ()),
+  : model_method (other->get_location (), other->get_declaring_class ()),
     other_this (NULL)
 {
 }


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