Commit ba2335f2 by Jerry DeLisle

re PR fortran/41278 (internal compiler error related to matmul and transpose)

2009-11-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/41278
	* gfortran.dg/array_function_5.f90: New test.

From-SVN: r154681
parent 4252ed2b
2009-11-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/41278
* gfortran.dg/array_function_5.f90: New test.
2009-11-26 Janus Weil <janus@gcc.gnu.org> 2009-11-26 Janus Weil <janus@gcc.gnu.org>
PR fortran/42048 PR fortran/42048
......
! { dg-do run )
! PR41278 internal compiler error related to matmul and transpose
! Test case prepared by Jerry DeLisle <jvdelisle@gcc.gnu.org>
program bug
implicit none
real, dimension(3,3) :: matA,matB,matC
matA(1,:)=(/1., 2., 3./)
matA(2,:)=(/4., 5., 6./)
matA(3,:)=(/7., 8., 9./)
matB=matmul(transpose(0.5*matA),matA)
matC = transpose(0.5*matA)
matC = matmul(matC, matA)
if (any(matB.ne.matC)) call abort()
end program bug
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment