Gfortran problem with elemental & operator overloading

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Jan 13 21:02:00 GMT 2010


On Wed, Jan 13, 2010 at 03:27:09PM -0500, Armelius Cameron wrote:
> I can compile the code with Intel Fortran on my machine compiles and run it
> without segfault.
> And curiously, I tried this program on another machine with gfortran-4.3 and
> it works fine there !

Turning on all available checking, I get

troutmask:sgk[211] gfc4x -o z -O2 -fcheck=all hj.f90
troutmask:sgk[212] ./z
At line 78 of file hj.f90
Fortran runtime error: Index '1' of dimension 2 of array 'table' outside
 of expected range (0:0)


-- 
Steve



More information about the Fortran mailing list