ASSIGN statement in Fortran 77

Tobias Burnus tobias.burnus@physik.fu-berlin.de
Thu Aug 28 08:52:00 GMT 2008


June-Chiew Han wrote:
> The ASSIGN statement in Fortran 77 is deleted for newer Fortran
> version. The error outputted by gfortran was
> "Warning: Deleted feature: ASSIGN statement at (1)".
> 
> Any idea in solving this is greatly appreciated.

I'm not sure what you mean by "solving". If you simply want to run the
program, I would ignore the warning: While the program is invalid
Fortran 95/2003, it was valid in Fortran 77 and only depricated in
Fortran 90. Therefore, I assume that really all Fortran compilers will
continue to support the ASSIGN statement.

If you are actively maintaining the program, you could consider
replacing the ASSIGN statement.

If you want to get rid of the printed warning message, you can use -w to
surpress _all_ warnings.

Tobias



More information about the Fortran mailing list