Mainline gfortran segfaults when compiling the code below: module foo contains
subroutine bar contains subroutine baz(a) integer, dimension(:) :: a end subroutine end subroutine end module foo [EMAIL PROTECTED]:~/tmp> gfortran -v -c test.f90 Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /home/martin/software/gcc/configure --with-gmp=/home/martin/software/mygmp --with-mpfr=/home/martin/software/mympfr --prefix=/home/martin/software/ugcc --enable-languages=c++,fortran Thread model: posix gcc version 4.2.0 20060221 (experimental) /home/martin/software/ugcc/libexec/gcc/x86_64-unknown-linux-gnu/4.2.0/f951 test.f90 -quiet -dumpbase test.f90 -mtune=generic -auxbase test -version -I /home/martin/software/ugcc/lib/gcc/x86_64-unknown-linux-gnu/4.2.0/finclude -o /tmp/ccVUSMlJ.s GNU F95 version 4.2.0 20060221 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.2.0 20060221 (experimental). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 test.f90: In function bar: test.f90:6: 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. -- Summary: [gfortran, 4.2.0 regression] ICE (segfault) on valid code Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: martin at mpa-garching dot mpg dot de GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26409