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
This commit is contained in:
Jerry DeLisle 2009-11-26 19:10:29 +00:00
parent 4252ed2bd7
commit ba2335f224
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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>
PR fortran/42048

View File

@ -0,0 +1,16 @@
! { 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