I'm having an issue with the latest ftn95 5.2.1 which goes along the lines of 'Error: Reference through NULL Fortran POINTER'
Module Mod_Name
integer,dimension(:),allocatable,save :: array1
Contains Subroutine Sub_Name integer :: k,i,stat k = 0 do i = 1,mxI if (condition(i)) k = k +1 end do allocate (array1(k),STAT = stat) do i = 1,k array1(i) = some value !!!!!!!!!!!! end do
...something else...
End Subroutine Sub_Name End Module Mod_Name
Which errors at the !!!!!! marked line
in the debugger right clicking on array1 yields 'no pointer'
the stat value for on allocation is 2 (but I can't find a table to tell me what these stat values mean and I'm sure non-zero means it didn't work!)
Thanks!