re PR fortran/35724 (Compile time segmentation fault for CSHIFT with negative third...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Thu, 17 Apr 2008 04:33:11 +0000 (04:33 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Thu, 17 Apr 2008 04:33:11 +0000 (04:33 +0000)
2008-04-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/35724
* gfortran.dg/eoshift_2.f90: New test.

From-SVN: r134377

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/eoshift_2.f90 [new file with mode: 0644]

index 2c6e58b396ca697fee98c9f397fc8b522d4e9534..b7349e22069d52f4caf460010bc2a2a052e21e1d 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/35724
+       * gfortran.dg/eoshift_2.f90: New test.
+
 2008-04-16  Paul Thomas  <pault@gcc.gnu.org>
 
        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 (file)
index 0000000..a4c3b2a
--- /dev/null
@@ -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