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< ---------------------------------- -- Summary: ICE if variable name is ommitted in an initialiser and a qualified type for the variable is used Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rmathew at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20418