As mentioned in the CP2K PR 29975, current gcc generates and ICE: [EMAIL PROTECTED]:/scratch/vondele/gcc_test/gfortran/test/src> gfortran -Os all.f90 all.f90: In function ‘compute_screening_matrices’: all.f90:305498: internal compiler error: in build2_stat, at tree.c:3074 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. [EMAIL PROTECTED]:/scratch/vondele/gcc_test/gfortran/test/src> gfortran -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /scratch/vondele/gcc_trunk/gcc/configure --prefix=/scratch/vondele/gcc_trunk/build --with-mpfr_include=/scratch/vondele/mpfr-2.2.0/ --with-mpfr_lib=/scratch/vondele/mpfr-2.2.0/ --with-gmp=/users/vondele/ --enable-languages=c,fortran Thread model: posix gcc version 4.3.0 20070622 (experimental)
The source can be obtained as explained in comment 112 of PR 29975 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29975#c112 -- Summary: internal compiler error: in build2_stat, at tree.c:3074 Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jv244 at cam dot ac dot uk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32459