This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/71883] ICE in identical_array_ref, at fortran/dependency.c:104
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 14 Jul 2016 16:39:28 +0000
- Subject: [Bug fortran/71883] ICE in identical_array_ref, at fortran/dependency.c:104
- Auto-submitted: auto-generated
- References: <bug-71883-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71883
--- Comment #2 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Runtime behavior :
$ cat y1.f90
program p
character(3), allocatable :: z(:,:)
z(1:2,1:2) = 'abc'
z(2,1) = z(1,2)
z(2,1) = z(1,2)
end
$ gfortran-6 -g -O0 -Wall -fcheck=all -fno-frontend-optimize y1.f90
$ a.out
At line 3 of file y1.f90
Fortran runtime error: Index '1' of dimension 2 of array 'z' outside of
expected range (47021301956608:0)
Error termination. Backtrace:
#...