Hello,
the following code results in a compiler error for both the 32 bit and the 64 bit version of ftn95 version 8.60.
SUBROUTINE MYSUB (IERR)
INCLUDE <WINDOWS.INS>
INTEGER*4 IERR
INTEGER*4 IERR4
character*256 MYFILENAME
character*64 myformat
integer n
PARAMETER(n=32)
integer width(n),height(n),nb_colours(n)
integer nb_images
CALL GET_IM_INFO@(MYFILENAME,
*width(n),height(n),nb_colours(n),
*nb_images,myformat,IERR)
end
The problem is the 7th parameter of subroutine GET_IM_INFO@ (IERR). Compiling this code results in the following error messages:
[FTN95/x64 Ver. 8.60.0 Copyright (c) Silverfrost Ltd 1993-2019]
...
0011) CALL GET_IM_INFO@(MYFILENAME,
0012) *width(n),height(n),nb_colours(n),
0013) *nb_images,myformat,IERR)
*** The seventh argument of GET_IM_INFO@ is passed as a reference that should
not be a constant nor an expression
1 ERROR [<MYSUB> FTN95 v8.60.0]
*** Compilation failed
. No object file is generated.
If parameter ierr is substituted by ierr4 when calling GET_IM_INFO@ then the compilation is successful and the corresponding object file is generated for both the 32 bit and the 64 bit version of ftn95 (version 8.60).
Moreover if using version 8.50 of ftn95 then the erronious code above compiles successfully for both the 32 and 64 bit version of ftn95.
Regards, Dietmar