This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50130] [4.6/4.7 Regression] ICE with invalid array slice
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Aug 2011 15:12:09 +0000
- Subject: [Bug fortran/50130] [4.6/4.7 Regression] ICE with invalid array slice
- Auto-submitted: auto-generated
- References: <bug-50130-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50130
--- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-08-22 15:12:09 UTC ---
Author: tkoenig
Date: Mon Aug 22 15:12:04 2011
New Revision: 177961
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177961
Log:
2011-08-22 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/50130
* resolve.c (resolve_array_ref): Don't calculate upper bound
if the stride is zero.
2011-08-22 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/50130
* gfortran.dg/zero_stride_1.f90: New test.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gfortran.dg/zero_stride_1.f90
Modified:
branches/gcc-4_6-branch/gcc/fortran/ChangeLog
branches/gcc-4_6-branch/gcc/fortran/resolve.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog