This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: end-of-constructor location
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 26 Mar 2005 21:58:37 -0700
- Subject: [gcjx] Patch: FYI: end-of-constructor location
- Reply-to: tromey at redhat dot com
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)
{
}