From: burnus Date: Wed, 6 Apr 2011 18:32:27 +0000 (+0000) Subject: 2011-04-06 Tobias Burnus X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=413351c2ed18adb38a26509442e894379dfd133d;p=thirdparty%2Fgcc.git 2011-04-06 Tobias Burnus PR fortran/18918 PR fortran/48477 * gfortran.dg/coarray_13.f90: Avoid out-of-bounds access. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172061 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2e6ba0c748f6..e3de3732f081 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-04-06 Tobias Burnus + + PR fortran/18918 + PR fortran/48477 + * gfortran.dg/coarray_13.f90: Avoid out-of-bounds access. + 2011-04-06 Steve Ellcey * gcc.dg/mtune.c: Prune note from output. @@ -33,7 +39,7 @@ 2011-04-04 Yufeng Zhang - * g++.dg/abi/arm_cxa_vec1.C (__ARM_EABI__): Fix typo. + * g++.dg/abi/arm_cxa_vec1.C (__ARM_EABI__): Fix typo. (cctor): Actually return the value. (main): Cast return values. diff --git a/gcc/testsuite/gfortran.dg/coarray_13.f90 b/gcc/testsuite/gfortran.dg/coarray_13.f90 index 1c79a079130a..6283fa02c573 100644 --- a/gcc/testsuite/gfortran.dg/coarray_13.f90 +++ b/gcc/testsuite/gfortran.dg/coarray_13.f90 @@ -105,10 +105,10 @@ contains integer :: n integer :: A(-1:3,0:4,-2:5,-4:7)[n+2:n+5,n-1:*] - A(1,1,1,1) = 42 - if (A(1,1,1,1) /= 42) call abort() - A(1,1,1,1)[4,n] = -42 - if (A(1,1,1,1)[4,n] /= -42) call abort() + A(-1,0,-2,-4) = 42 + if (A(-1,0,-2,-4) /= 42) call abort() + A(1,0,-2,-4) = 99 + if (A(1,0,-2,-4) /= 99) call abort() if (this_image(A,dim=1) /= n+2) call abort() if (lcobound (A,dim=1) /= n+2) call abort()