matmul_1.f90 fails with a segmentation fault on ia64-unknown-linux-gnu, probably due to an array overrun:
$ gfortran -g matmul_1.f90 $ gfortran -v Using built-in specs. Target: ia64-unknown-linux-gnu Configured with: ../gcc-4.1-20050611/configure --prefix=/home/zfkts --enable- languages=c,f95 Thread model: posix gcc version 4.1.0 20050611 (experimental) $ gdb ./a.out GNU gdb Red Hat Linux (6.3.0.0-0.30.1rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "ia64-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) r Starting program: /home/zfkts/Krempel/Matmul/a.out Program received signal SIGSEGV, Segmentation fault. 0x20000000002cdf60 in _int_free () from /lib/tls/libc.so.6.1 (gdb) bt #0 0x20000000002cdf60 in _int_free () from /lib/tls/libc.so.6.1 #1 0x20000000002cb6e0 in free () from /lib/tls/libc.so.6.1 #2 0x2000000000052380 in *_gfortrani_internal_free (mem=0x600000000000e508) at ../../../gcc-4.1-20050611/libgfortran/runtime/memory.c:212 #3 0x20000000000525b0 in *_gfortran_deallocate (mem=0x60000fffffff93b8, stat=0x0) at ../../../gcc-4.1-20050611/libgfortran/runtime/memory.c:311 #4 0x4000000000003a40 in MAIN__ () at matmul_1.f90:51 #5 0x4000000000003ba0 in main (argc=1, argv=0x60000fffffff9d68) at ../../../gcc-4.1-20050611/libgfortran/fmain.c:18 (gdb) There is some invalid code in matmul_1.f90. Line 36 should read c(1:3,1:2) = matmul (a(7:9,3:N), b(3:N,3:4)) but that is not the cause for the segfault. -- Summary: matmul_1.f90 testsuite failure Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P2 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tkoenig at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: ia64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22046