This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48746] New: Matmul with allocate on assignment
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 23 Apr 2011 22:08:01 +0000
- Subject: [Bug fortran/48746] New: Matmul with allocate on assignment
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48746
Summary: Matmul with allocate on assignment
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: tkoenig@gcc.gnu.org
CC: pault@gcc.gnu.org
The following program crashes with a double free on current trunk:
program main
implicit none
integer, parameter :: m=10, n=12, count=4
double precision :: optmatmul(m, n)
double precision :: a(m, count), b(count, n), c(m, n)
double precision, dimension(:,:), allocatable :: tmp
call random_number(a)
call random_number(b)
tmp = matmul(a,b)
end program main
Paul, if you happen to have any idea...