For the attached test case, current gfortran crashes with the following ICE:
~/data/planck/LevelS/bugrep>gfortran -v -c -O2 testcase.f90 Using built-in specs. Target: i686-pc-linux-gnu Configured with: /scratch/martin/gcc/configure --prefix=/afs/mpa/data/martin/ugc c --with-mpfr-include=/usr/include --with-mpfr-lib=/usr/lib --with-gmp-include=/ usr/include --with-gmp-lib=/usr/lib --enable-languages=c++,fortran --enable-chec king=release Thread model: posix gcc version 4.4.0 20080830 (experimental) [trunk revision 139798] (GCC) COLLECT_GCC_OPTIONS='-v' '-c' '-O2' '-mtune=generic' /afs/mpa/data/martin/ugcc/libexec/gcc/i686-pc-linux-gnu/4.4.0/f951 testcase.f90 -quiet -dumpbase testcase.f90 -mtune=generic -auxbase testcase -O2 -version -fi ntrinsic-modules-path /afs/mpa/data/martin/ugcc/lib/gcc/i686-pc-linux-gnu/4.4.0/ finclude -o /tmp/ccQMSZnv.s GNU Fortran (GCC) version 4.4.0 20080830 (experimental) [trunk revision 139798] (i686-pc-linux-gnu) compiled by GNU C version 4.4.0 20080830 (experimental) [trunk revision 139798], GMP version 4.2.1, MPFR version 2.3.1. warning: GMP header version 4.2.1 differs from library version 4.2.2. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 testcase.f90: In function 'gn_monte_rand': testcase.f90:50: internal compiler error: in subst_stack_regs_pat, at reg-stack. c:1537 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. It seems that the same problem does not occur on "x86_64-unknown-linux-gnu". -- Summary: gfortran, trunk: ICE subst_stack_regs_pat, at reg- stack.c:1537 Product: gcc Version: 4.4.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: 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=37286