[gfortran, testsuite] Fix bounds checking for substrings, enable bounds chekcing in dg testsuite, assorted fixes
Andrew Pinski
pinskia@gmail.com
Sat Nov 25 08:24:00 GMT 2006
On Sat, 2006-11-25 at 02:54 +0100, Tobias Schlüter wrote:
> 3. g77/dnrm2.f is a bit special, because it uses
> the widespread syntax to imitate assumed-length arrays
> dimension a(100)
> call s(100, a)
> ...
> subroutine s(n,a)
> dimension a(1)
> do i=1,n
> a(i) = ...
> end do
> end subroutine
> Maybe our bounds checking is overzealous here?
I think this is undefined behavior even as defined by Fortran 77.
What the user mention is that the dimension on a is 1. Maybe we can
special case this case. Maybe the question is did g77 special case it?
Thanks,
Andrew Pinski
More information about the Fortran
mailing list