------- Comment #3 from tkoenig at gcc dot gnu dot org 2007-07-08 22:08 ------- Here's an example:
$ cat mm.f90 program main real, dimension(:,:), allocatable :: a real, dimension(:), allocatable :: b allocate (a(2,2), b(3)) call random_number(a) call random_number(b) print *,matmul(a,b) end program main $ gfortran mm.f90 $ ./a.out a.out: ../../../../gcc/trunk/libgfortran/generated/matmul_r4.c:173: matmul_r4: Assertion `count == b->dim[0].ubound + 1 - b->dim[0].lbound' failed. Aborted -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32336