This is the mail archive of the java@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 to compile gcjx


My first patch I had to move the class instantions below the the
method defs to get it work. This should not hurt anyone and it fixes
my bug it looks like my particular version of gcc is not capable of
doing the specialization right.

Mike


Index: invoke.cc
===================================================================
--- invoke.cc   (revision 107588)
+++ invoke.cc   (working copy)
@@ -703,13 +703,6 @@

 // Instantiations.

-template class model_generic_invocation<model_method_invocation>;
-template class model_generic_invocation<model_type_qualified_invocation>;
-template class model_generic_invocation<model_super_invocation>;
-template class model_generic_invocation<model_this_invocation>;
-template class model_generic_invocation<model_new>;
-template class model_generic_invocation<model_new_primary>;
-
 template<>
 void
 model_generic_invocation<model_method_invocation>::visit (visitor *v)
@@ -756,3 +749,10 @@
   v->visit_generic_invocation (this, method, klass, arguments, simple_name,
                                type_params, actual_type_params);
 }
+
+template class model_generic_invocation<model_method_invocation>;
+template class model_generic_invocation<model_type_qualified_invocation>;
+template class model_generic_invocation<model_super_invocation>;
+template class model_generic_invocation<model_this_invocation>;
+template class model_generic_invocation<model_new>;
+template class model_generic_invocation<model_new_primary>;


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