re PR fortran/61775 (Allocatable array initialized by implied-do loop array constructor gives invalid memory reference)

2018-03-13  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/61775
	* gfortran.dg/pr61775.f90: New test.

From-SVN: r258509
This commit is contained in:
Steven G. Kargl 2018-03-14 00:45:45 +00:00
parent d903fdfd09
commit 10f499af34
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2018-03-13 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/61775
* gfortran.dg/pr61775.f90: New test.
2018-03-13 Jakub Jelinek <jakub@redhat.com>
PR c++/84843

View file

@ -0,0 +1,9 @@
! { dg-do run }
! PR fortran/61775.f90
program pi
real, allocatable :: x(:)
integer :: n
n = 10000
x = [ (i,i=1,n) ]
if (x(n) /= 10000) stop 1
end program pi