From: Jerry DeLisle Date: Thu, 17 Apr 2008 04:33:11 +0000 (+0000) Subject: re PR fortran/35724 (Compile time segmentation fault for CSHIFT with negative third... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca4ceacbbb7fc11529779b585677026796fce2bc;p=gcc.git re PR fortran/35724 (Compile time segmentation fault for CSHIFT with negative third arg) 2008-04-16 Jerry DeLisle PR fortran/35724 * gfortran.dg/eoshift_2.f90: New test. From-SVN: r134377 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2c6e58b396c..b7349e22069 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-04-16 Jerry DeLisle + + PR fortran/35724 + * gfortran.dg/eoshift_2.f90: New test. + 2008-04-16 Paul Thomas PR fortran/35932 diff --git a/gcc/testsuite/gfortran.dg/eoshift_2.f90 b/gcc/testsuite/gfortran.dg/eoshift_2.f90 new file mode 100644 index 00000000000..a4c3b2ae2ed --- /dev/null +++ b/gcc/testsuite/gfortran.dg/eoshift_2.f90 @@ -0,0 +1,9 @@ +! { dg-do compile } +! pr35724 compile time segmentation fault for eoshift with negative third arg +subroutine ra0072(dda,lda,nf10,nf1,mf1,nf2) + real dda(10,10) + logical lda(10,10) + dda = eoshift(dda,(/mf1,nf1/),tws0r,nf3-nf1) + lda = cshift(lda,(/mf1,nf1/),nf3-nf1) + where (lda) dda = eoshift(dda,1,1.0,-mf1) +end subroutine