For: MODULE ai_geminals_debug REAL(8) :: kab CONTAINS SUBROUTINE init_grs(ya,yb,rA,rB) REAL(8), DIMENSION(6) :: C, D eab = SUM(C*D) kab = EXP(-eab) END SUBROUTINE init_grs END MODULE ai_geminals_debug
leads to an ice (march=native so might be target dependent): > gfortran -g -O3 -ffast-math -march=native -v bug.f90 Driving: gfortran -g -O3 -ffast-math -march=native -v bug.f90 -lgfortran -lm -shared-libgcc Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/data03/vondele/gcc_trunk/build/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /data03/vondele/gcc_trunk/gcc/configure --disable-bootstrap --prefix=/data03/vondele/gcc_trunk/build --enable-languages=c,c++,fortran --disable-multilib --with-ppl=/data03/vondele/gcc_trunk/build/ --with-cloog=/data03/vondele/gcc_trunk/build/ --with-libelf=/data03/vondele/libelf-0.8.12/build/ --enable-gold --enable-lto --enable-plugins Thread model: posix gcc version 4.5.0 20100302 (experimental) [trunk revision 157164] (GCC) COLLECT_GCC_OPTIONS='-g' '-O3' '-ffast-math' '-v' '-shared-libgcc' /data03/vondele/gcc_trunk/build/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/f951 bug.f90 -march=k8-sse3 -mcx16 -msahf --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=k8 -quiet -dumpbase bug.f90 -auxbase bug -g -O3 -version -ffast-math -fintrinsic-modules-path /data03/vondele/gcc_trunk/build/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/finclude -o /tmp/ccBhxqrU.s GNU Fortran (GCC) version 4.5.0 20100302 (experimental) [trunk revision 157164] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036], GMP version 4.2.4, MPFR version 2.4.1, MPC version 0.8 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU Fortran (GCC) version 4.5.0 20100302 (experimental) [trunk revision 157164] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036], GMP version 4.2.4, MPFR version 2.4.1, MPC version 0.8 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 <reduc_plus_expr 0x7f0b90414390 type <vector_type 0x7f0b90574d20 type <real_type 0x7f0b905230a8 real(kind=8) DF size <integer_cst 0x7f0b90507a50 constant 64> unit size <integer_cst 0x7f0b90507a78 constant 8> align 64 symtab 0 alias set 2 canonical type 0x7f0b905230a8 precision 64 pointer_to_this <pointer_type 0x7f0b905232a0>> V2DF size <integer_cst 0x7f0b90507c58 constant 128> unit size <integer_cst 0x7f0b90507c80 constant 16> align 128 symtab 0 alias set 2 canonical type 0x7f0b90574d20 nunits 2 pointer_to_this <pointer_type 0x7f0b9057ee70>> arg 0 <ssa_name 0x7f0b9040c6e0 type <vector_type 0x7f0b90574d20> visited var <var_decl 0x7f0b9040b8c0 vect_var_.28>def_stmt vect_var_.28_51 = vect_var_.27_49 + vect_var_.28_65; version 51>> bug.f90: In function init_grs: bug.f90:4:0: internal compiler error: in expand_debug_expr, at cfgexpand.c:2957 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- Summary: [4.5 Regression] ice expand_debug_expr, at cfgexpand.c:2957 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization 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=43229