This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Array reference at (1) is out of bounds


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]