This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/32336] matmul: flag runtime- instead of assertation error
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2007 22:08:27 -0000
- Subject: [Bug libfortran/32336] matmul: flag runtime- instead of assertation error
- References: <bug-32336-13648@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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