gfortran crashes on the Macintosh with this program - [dranta:~/tests/gfortran-D] dir% gfortran -c module_bulkio.f90 module_bulkio.f90:0: internal compiler error: Bus error Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. [dranta:~/tests/gfortran-D] dir% cat module_bulkio.f90 module bulkio_module implicit none private integer, save :: maxpe contains subroutine bulkio_read_same_i_1( ) integer :: max_data_length, min_data_length integer :: data_lengths(0:maxpe) min_data_length = minval( data_lengths( 0: maxpe ) ) end subroutine bulkio_read_same_i_1 end module bulkio_module [dranta:~/tests/gfortran-D] dir% gfortran --v Using built-in specs. Target: powerpc-apple-darwin8.4.0 Configured with: ../gcc/configure --prefix=/Users/dir/gfortran --enable-languages=c,f95 Thread model: posix gcc version 4.2.0 20060214 (experimental)
maxval() and sum() also crash in a similar fashion.
This is the same Fortran problem explained here http://gcc.gnu.org/ml/gcc/2006-02/msg00247.html You may want to update the compiler, since fix has been applied http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01216.html
Fixed.