Compiling public class FinalTest2 { public static final String text = "foo"; public static void main(String[] args) { System.out.println(text); } } fails if I use -findirect-dispatch: $ gcj -findirect-dispatch FinalTest2.java --main=FinalTest2 -o FinalTest2 FinalTest2.java: In class 'FinalTest2': FinalTest2.java: In method '<clinit>()': FinalTest2.java:2: error: final field 'text' may not have been initialized FinalTest2.java: At top level: FinalTest2.java:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Confirmed but note right now that -findirect-dispatch is really only for compiling from bytecode.
*** This bug has been marked as a duplicate of 21264 ***
.
*** This bug has been marked as a duplicate of 21624 ***