This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Array reference at (1) is out of bounds
- From: Ray Nachlinger <ray at ultramarine dot com>
- To: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>
- Cc: fortran at gcc dot gnu dot org
- Date: Fri, 14 Jul 2006 13:04:58 -0500 (CDT)
- Subject: Re: Array reference at (1) is out of bounds
- References: <20060714180004.35C7C10028@bromo.msbb.uc.edu>
On Fri, 14 Jul 2006, Jack Howarth wrote:
> I noticed that the stock fftpack generates some warnings of the form..
>
> cd fftpack; gfortran -c -O3 -g rffti1.f
> In file rffti1.f:24
>
> IFAC(3) = 2
> 1
> Warning: Array reference at (1) is out of bounds
> In file rffti1.f:27
>
> IFAC(2) = NF
> 1
> Warning: Array reference at (1) is out of bounds
>
> Is there an easy fix to this isue without reconstructing
> the algorithms in...
>
> http://www.netlib.org/fftpack/rffti1.f
>
If you change
DIMENSION WA(1) ,IFAC(1) ,NTRYH(4)
to
DIMENSION WA(*) ,IFAC(*) ,NTRYH(4)
it should fix your problem.
Ray