This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ASSIGN statement in Fortran 77


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]