old-style variable initialization with g95

Paul Brook paul@codesourcery.com
Sun Aug 29 13:43:00 GMT 2004


On Sunday 29 August 2004 14:25, Tobias Schlüter wrote:
> Hans Horn wrote:
> > I'm doing my first baby-steps using g95 and am running into compilation
> > problems due to old-style variable
> > initializations such as
> > Integer I /0/, J /1/
> > Real*8 R(6) /6*0/
> > Logical L /.false./
> >
> > This is an f77 extension that is widely supported by commercial compilers
> > - including g77.
> > Does anyone happen to know the gfortran option that enables these
> > constructs? (I sure hope there is such an option)
>
> I've implemented it, your question was enough motivation for me to finally
> investigate into the detailed semantics of this extension (I didn't find
> any documentation for it anywhere). I will post a patch once I've finished
> some more testing, as I'm not yet sure if there are any possible bad
> interactions that I've missed. Suggestions for testcases are welcome.

Section 5 of the Intel Fortran Language Reference contains a fairly good 
description.
http://www.intel.com/software/products/compilers/docs/for_lang.htm

Paul



More information about the Fortran mailing list