This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34546] Incorrect array identified in out of bounds runtime error
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2007 10:10:48 -0000
- Subject: [Bug fortran/34546] Incorrect array identified in out of bounds runtime error
- References: <bug-34546-14178@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from dfranke at gcc dot gnu dot org 2007-12-21 10:10 -------
Confirmed.
Reduced testcase:
$> cat pr34546.f90
program fred
implicit none
real :: JTEJ(0:100,0:6000,6) = 1.0
real :: pT(10000:20000, 6) = 2.0
write(*,*) JTEJ(0,1000,:) * pT(1000,:)
end
$> fortran-svn -g -Wall -fbounds-check pr34546.f90 && ./a.out
At line 6 of file pr34546.f90
Fortran runtime error: Array reference out of bounds for array 'jtej', lower
bound of dimension 1 exceeded(1000 < 10000)
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dfranke at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC host triplet|x86_64-unknown-linux-gnu |
Known to fail| |4.3.0
Last reconfirmed|0000-00-00 00:00:00 |2007-12-21 10:10:48
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34546