This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: cannot compile libgcj



Tom Tromey writes:
> Per> java/lang/reflect/AccessibleObject.h:17: use of class template `template <class T> JArray<T>' as expression
> Per> java/lang/reflect/AccessibleObject.h:17: parse error before `:'
> 
> Try the appended patch.

And then you'll probably need this one. It might get you there but I'd
like to understand more about what happend in the rest of gcc before I
check it in.

./A

Thu Sep  9 17:33:28 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * class.c (finish_class): We're now outside a valid method
        declaration. Tell the rest of gcc so.

Index: class.c
===================================================================
RCS file: /cvs/egcs/egcs/gcc/java/class.c,v
retrieving revision 1.44
diff -u -p -r1.44 class.c
--- class.c     1999/09/02 21:57:08     1.44
+++ class.c     1999/09/10 00:38:27
@@ -1225,6 +1225,7 @@ finish_class ()
       method = TREE_CHAIN (method);
     }
 
+  current_function_decl = NULL_TREE;
   make_class_data (current_class);
   register_class ();
   rest_of_decl_compilation (TYPE_NAME (current_class), (char*) 0, 1, 0);

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