FORTRAN IV DATA statements

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Wed Sep 2 13:46:00 GMT 2009


Hi Stephan,

Stephan Buchert wrote:
[ In Fortran 66 ]
> the lines
> 
>       COMMON/DATIME/ISDATE(3),ISTIME(2),NAME(2)
>       DATA ISDATE/'01-F','EB-0','2   '/,ISTIME/'15:4','9:27'/
> 
> are ok, the data between the apostrophes being "literal constants."
> 
> In FORTRAN 77 they would be string constants, but incompatible types of
> variable and constants in DATA statements were no longer allowed. Thus
> FORTRAN 77 made legal FORTRAN 66 (and FORTRAN IV) code invalid.

unfortunately, there are hundreds of legacy extensions to Fortran, and 
it is quite low priority for us to implement them.  I think to implement 
this particular extension would be < 10 lines (+ testcases), but I don't 
believe any of the gfortran maintainers will do it soon, as supporting 
valid Fortran (2003) has a higher priority.  If there's a good patch, it 
will be incorporated, but for the time being opening a PR with a 
reference to this thread and hoping that someone will find this 
shortcoming important enough an issue to spend their time on it is your 
best bet.

Cheers,
- Tobi



More information about the Fortran mailing list