mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-22 21:51:36 +08:00
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:
parent
4252ed2bd7
commit
ba2335f224
@ -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
|
||||
|
16
gcc/testsuite/gfortran.dg/array_function_5.f90
Normal file
16
gcc/testsuite/gfortran.dg/array_function_5.f90
Normal 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
|
Loading…
x
Reference in New Issue
Block a user