gfortran fails to compile valid code, leads to ICE segfault, Code compiles fine under 4.1.2 .
command used: gfortran -v -save-temps -c -ffree-form ice.f OUTPUT: Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc-4.2.3/configure --prefix=/scratch/sjb/local Thread model: posix gcc version 4.2.3 /scratch/sjb/local/libexec/gcc/i686-pc-linux-gnu/4.2.3/f951 ice.f -quiet -dumpbase ice.f -mtune=generic -auxbase ice -version -ffree-form -I /scratch/sjb/local/lib/gcc/i686-pc-linux-gnu/4.2.3/finclude -o ice.s GNU F95 version 4.2.3 (i686-pc-linux-gnu) compiled by GNU C version 4.2.3. GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129260 ice.f: In function subtwo: ice.f:51: internal compiler error: in fold_convert, at fold-const.c:2248 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. -- Summary: gfortran fails to compile valid code with ICE segfault Product: gcc Version: 4.2.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: s dot binnie at ucl dot ac dot uk 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=35475