This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28129] gfortran -fbounds-check: Shows invalid array out of bounds error
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jul 2006 20:37:45 -0000
- Subject: [Bug fortran/28129] gfortran -fbounds-check: Shows invalid array out of bounds error
- References: <bug-28129-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2006-07-06 20:37 -------
Subject: Bug 28129
Author: fxcoudert
Date: Thu Jul 6 20:37:36 2006
New Revision: 115231
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115231
Log:
PR fortran/28129
* trans-array.c (gfc_trans_array_bound_check): Add a locus
argument, and use it in the error messages.
(gfc_conv_array_index_offset): Donc perform bounds checking on
the last dimension of assumed-size arrays.
* gfortran.dg/bounds_check_4.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/bounds_check_4.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-array.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28129