This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR37735 - Allocatable components in vectors of derived types cause ICE on assignment
Thomas Koenig wrote:
Maybe we could also focus a bit on bounds checking. There are numerous
things we don't check at the moment (array intrinsics and also other
cases), and I'd like some improvement there :-)
One option that would help me (and probably countless others) to debug
legacy code is an -fcheck-size option.
The meaning of this option would be:
Check if array references fall within the extent of the array.
E.g.
REAL A(10,10)
A = 1.0
CALL SUB(A,10)
END
SUBROUTINE SUB(A, N)
REAL A(N, N)
PRINT*,A(1,N*N)
END
Kind regards,
--
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.indiv.nluug.nl/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/ml/gcc/2008-01/msg00009.html