A class compiled with the IBM Java 1.4.2 JDK defines a nested interface.
I use gcj 4.1.1 to compile the using class and the jar containing the class containing the nested interface, and I receive, in return, a segv inside the compiler.
I will post the complete repro materials.
make: Leaving directory `/home/benson/rlp50/java_batch_ne/gcj_testcase/o'
(eval `/openpkg/etc/rc --eval all env`; gcj -fjni -findirect-dispatch --main=User User.java o/outer.jar)
o/Outer.java: In class 'o.Outer':
o/Outer.java: In constructor '()':
o/Outer.java:14: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
Created attachment 11889 [details]
Source for test case
This tarball contains a compiled version of the 'compiled by IBM' part of the problem, as well as a Makefile to recompile it. In the outer Makefile, you will want to neutralize the 'OPENPKG' macro before running it.
In the real code where I encountered this originally, the ICE was reported on the class that tried to implement the nested interface. When I boiled down the test case to what I've posted, the ICE moved to the constructor of the class that contains the nested interface. Of course, I can't tell if that means that I'm reporting the same bug as the one I originally fell over, or a different one. I wouldn't mind posting the rather large JAR file containing the real version of the nested interface if someone wants it.
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.