This internal compiler error seems to occur when a mixture of double precision and integer variables are present in a statement function
$cat abc123.F subroutine abcd1234 integer x double precision funcxi funcxi(x) = $ (x-1)*2d0 end $ gfortran -c -v abc123.F Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../gcc/configure --prefix=/home/edo/apps/gcc.cvs --with-mpfr=/home/edo/apps --enable-languages=c,c++,fortran Thread model: posix gcc version 4.1.0 20051026 (experimental) /home/edo/apps/gcc.cvs/libexec/gcc/x86_64-unknown-linux-gnu/4.1.0/cc1 -E -traditional-cpp -D_LANGUAGE_FORTRAN -quiet -v abc123.F -mtune=k8 -o /tmp/ccK0rRq0.f ignoring nonexistent directory "/home/edo/apps/gcc.cvs/lib/gcc/x86_64-unknown-linux-gnu/4.1.0/../../../../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /home/edo/apps/gcc.cvs/include /home/edo/apps/gcc.cvs/lib/gcc/x86_64-unknown-linux-gnu/4.1.0/include /usr/include End of search list. /home/edo/apps/gcc.cvs/libexec/gcc/x86_64-unknown-linux-gnu/4.1.0/f951 /tmp/ccK0rRq0.f -ffixed-form -quiet -dumpbase abc123.F -mtune=k8 -auxbase abc123 -version -o /tmp/ccgrN4BT.s GNU F95 version 4.1.0 20051026 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.1.0 20051026 (experimental). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 /tmp/ccK0rRq0.f:0: 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. Might be a duplicate of 25041 -- Summary: gfortran: internal compiler error: Segmentation fault Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edoardo dot apra at pnl dot gov http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25584