Hi, the following generates an error at compile time...
!ftn95$free
program test
real*4 :: array(10)
do i=1,10
array(i)=float(i)
end do
call test1(array, 10)
end
subroutine test1 (array, anum)
real*4 :: array(anum)
integer anum
aval=minval(array)
write(*,*) aval
end
I can code around it manually by swapping the two declarations in the subroutine, but my source is automatically generated from a list of function declarations supplied by a 3rd-party and in that list, the number of elements in the array are declared after the array itself and not with 'fortran integers' in mind, thus:
!void test1(ref System.Float[]& array, ref int anum)
so editing all the places where this occurs manually is a bit of a faff! is it fixable in the compiler?
K