Commit ac27abdc by Francois-Xavier Coudert Committed by François-Xavier Coudert

re PR fortran/34770 (Incorrect array indexing through pointer when array does not start at 1)

	PR fortran/34770
	* gfortran.dg/pointer_1.f90: New test.

From-SVN: r132801
parent 4dabf736
2008-03-01 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/34770
* gfortran.dg/pointer_1.f90: New test.
2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
PR c++/35315
! Testcase for PR34770
! { dg-do run }
implicit none
integer, target :: x(0:12)
integer, pointer :: z(:)
integer i
do i = 0,12
x(i) = i
enddo
z => x
do i = 0,12
if (x(i) /= i .or. z(i) /= i) call abort
enddo
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment