Consider the attached heapsort.f90. When compiled it gives an internal compiler error.
According to http://gcc.gnu.org/ml/fortran/2009-01/msg00179.html, the bug is not present in 4.4.0 20081209 x86_64-*-freebsd . > gfortran -c heapsort.f90 heapsort.f90: In function 'heapsort': heapsort.f90:1: internal compiler error: Segmentation Fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. > gfortran -v Using built-in specs. Target: sparc-sun-solaris2.8 Configured with: /home/kkusuman/software/unZipped/gcc-4.4-20081107/configure --enable-languages=c,fortran --prefix=/home/kkusuman/software/myroot/gcc-4.4-20081107 --with-gnu-as --with-as=/home/kkusuman/software/myroot/bin/as --with-gnu-ld --with-ld=/home/kkusuman/software/myroot/bin/ld --with-build-time-tools=/home/kkusuman/software/myroot/bin/ Thread model: posix gcc version 4.4.0 20081107 (experimental) (GCC) -- Summary: internal compiler error with gfortran 4.4-20081107 Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kamaraju at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38853