FORTRAN IV DATA statements
Steve Kargl
sgk@troutmask.apl.washington.edu
Wed Sep 2 14:13:00 GMT 2009
On Wed, Sep 02, 2009 at 03:45:49PM +0200, Tobias Schlüter wrote:
>
> 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.
>
tobias already opened a PR.
http://gcc.gnu.org/ml/gcc-bugs/2009-09/msg00079.html
--
Steve
More information about the Fortran
mailing list