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: gfortran and f77 line continuation


Hi Ewan,

Ewan wrote:
> My problem now is that I cannot get my Fortran77 code to compile
> properly as the gfortran compiler seems to no longer accept the f77
> method of line continuation.
It does so automatically if you use the ".f" file extension or the
-ffixed-form option.

> I have tried using [...] the f77 method of placing a character in
> column 6,
This should work. If I use the following program, it works:
--------------
      program
     * test
      print
     + *,
     & 'Hello ',
     3 'world!'
      end program
--------------

Unfortunally, your example is too brief to be testable; in any case, the
"1" and "2" are in the wrong column (5 instead of 6).
Could you provide a longer example and the exact error message you get?

Regards,

Tobias


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