This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/32336] matmul: flag runtime- instead of assertation error



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]