This very simple testcase fails with an ICE on mainline: ---------------------------------- 8< ---------------------------------- ~/src/tmp > $MYGCJ --version gcj (GCC) 4.1.0 20050311 (experimental) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ~/src/tmp > cat Snafu.java public class Snafu { public static void main( String[] args) { java.io.File = new java.io.File( "junk"); } } ~/src/tmp > $MYGCJ --syntax-only Snafu.java Snafu.java: In class 'Snafu': Snafu.java: In method 'Snafu.main(java.lang.String[])': Snafu.java:5: internal compiler error: internal error in check-init: tree code n ot implemented: type_decl Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. ---------------------------------- 8< ----------------------------------
Of course it's true - you think I'd lie? ;-)
Test case committed as: * testsuite/libjava.compile/PR20418.java: New. * testsuite/libjava.compile/PR20418.xfail: New.
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. Thanks.