Current gfortran ICEs when compiling the attached testcase. As far as I could make out, the code should be valid. Reduction of the testcase seems very tricky, since the problem goes away even if I remove code after the reported line number of the error.
~/tmp>gfortran -c -v bug.f90 Using built-in specs. Configured with: /scratch/gcc/configure --quiet --prefix=/afs/mpa/data/martin/ugcc --enable-languages=c++,f95 --with-gmp=/afs/mpa/data/martin/mygmp Thread model: posix gcc version 4.0.0 20050128 (experimental) /afs/mpa/data/martin/ugcc/libexec/gcc/i686-pc-linux-gnu/4.0.0/f951 bug.f90 -quiet -dumpbase bug.f90 -mtune=pentiumpro -auxbase bug -version -o /tmp/ccArzq3H.s GNU F95 version 4.0.0 20050128 (experimental) (i686-pc-linux-gnu) compiled by GNU C version 4.0.0 20050128 (experimental). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 bug.f90:3846: 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. Sorry if this is a duplicate, but for a non-bugmaster it is hard to be sure with this kind of error. -- Summary: [gfortran] ICE (segfault) on legal (?) code Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: martin at mpa-garching dot mpg dot de CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19669