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:
parent
d903fdfd09
commit
10f499af34
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
9
gcc/testsuite/gfortran.dg/pr61775.f90
Normal file
9
gcc/testsuite/gfortran.dg/pr61775.f90
Normal 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
|
Loading…
Add table
Reference in a new issue