I get the following error building a new version of Ant with gcj. I was able to
build this code 1 week ago. No small test case yet, but the offending source is
the same as is found in bug 15708.
$ gcj --encoding=ISO-8859-1 -Wno-deprecated
-g -O2 -MT upstream/src/main/org/apache/tools/ant/taskdefs/DefBase.lo -MD -MP
-MF upstream/src/main/org/apache/tools/ant/taskdefs/.deps/DefBase.Tpo -c
-fPIC -o upstream/src/main/org/apache/tools/ant/taskdefs/.libs/DefBase.o
internal compiler error: tree check: expected class 'E', have 'c' (integer_cst)
in make_class_data, at java/class.c:1508
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Could be related to PR 11188, or bug 12755.
Compiling this file works fine for me with my current compiler.
I suspect it was either fixed by a patch elsewhere, or by one
of the other bug fixes in my tree.
Could you try again with cvs head? And if it fails, append
a stack trace from jc1?
FWIW I was able to reproduce this today using
cvs trunk gcj and cvs trunk rhug.
FYI, I'm testing a patch.
The problem seems to be that we can see an unloaded superinterface
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02876.html>.
Subject: Bug 15710
Module name: gcc
Changes by: firstname.lastname@example.org 2004-09-28 18:27:25
gcc/java : ChangeLog class.c
* class.c (add_miranda_methods): Load superinterface if not
Fix checked in.