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

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

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

From-SVN: r154864
This commit is contained in:
Jerry DeLisle 2009-12-01 04:40:14 +00:00
parent 52f21f0ec9
commit a05492f185
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-11-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/41278
* gfortran.dg/array_function_5.f90: New test.
2009-11-27 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/O16384.c: New test.

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