------- Comment #3 from langton at gcc dot gnu dot org 2006-07-17 22:26 ------- This doesn't appear to be a gfortran bug. On both i686-darwin and i686-pc-linux, a comparable C program crashes in the same way:
york.llnl.gov(831)% cat foo.c void test_check_sums() { const int SIZE = 100000; int array_i4[SIZE]; long long array_i8[SIZE]; double array_r8[SIZE]; float array_r4[SIZE]; int n; for (n = 0; n< SIZE; n++) { array_i4[n] = (int) -3*n; array_i8[n] = (long long) -3*n; array_r4[n] = (float) -3*n; array_r8[n] = (double) -3*n; } } york.llnl.gov(832)% gcc -ftrapv -c -O2 foo.c foo.c: In function 'test_check_sums': foo.c:2: internal compiler error: in fold_binary, at fold-const.c:8239 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. york.llnl.gov(833)% gcc -v Using built-in specs. Target: i386-apple-darwin8.7.1 Configured with: ../../source/mainline_source/configure --prefix=/home/langton2/opt_mactel/ --with-gmp=/home/langton2/opt_mactel/ --with-mpfr=/home/langton2/opt_mactel/ --enable-languages=c,fortran Thread model: posix gcc version 4.2.0 20060703 (experimental) -- langton at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Component|fortran |middle-end http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28411