The attached code generates an ICE when compiled at level -O1, but curiously not -O0, -O2, -O3.
wtest.f90: In function foo_bar_phi_foo: wtest.f90:12: internal compiler error: in build2_stat, at tree.c:3074 Please submit a full bug report, with preprocessed source if appropriate. The cause appears to be the dimensionality of the array arguments. If the dimensionality is reduced by one the ICE disappears. Additional version info: Driving: gfortran -v -save-temps -O1 wtest.f90 -lgfortranbegin -lgfortran -lm -shared-libgcc Using built-in specs. Target: i386-pc-linux-gnu Configured with: /home/fxcoudert/gfortran_nightbuild/trunk/configure --prefix=/home/fxcoudert/gfortran_nightbuild/irun-20070620 --enable-languages=c,fortran --build=i386-pc-linux-gnu --enable-checking=release --with-gmp=/home/fxcoudert/gfortran_nightbuild/software Thread model: posix gcc version 4.3.0 20070620 (experimental) /usr/local/gfortran/bin/../libexec/gcc/i386-pc-linux-gnu/4.3.0/f951 wtest.f90 -quiet -dumpbase wtest.f90 -mtune=i386 -auxbase wtest -O1 -version -fintrinsic-modules-path /usr/local/gfortran/bin/../lib/gcc/i386-pc-linux-gnu/4.3.0/finclude -o wtest.s GNU F95 version 4.3.0 20070620 (experimental) (i386-pc-linux-gnu) compiled by GNU C version 4.3.0 20070620 (experimental), GMP version 4.2.1, MPFR version 2.2.1. GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129432 -- Summary: ICE on overloaded interface Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: refson dot temp at ntlworld dot com GCC host triplet: i386-pc-linux-gnu GCC target triplet: i386-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32478