[gofrtran] Fix PR 16465: accept -ffixed-line-length-72

Steve Kargl sgk@troutmask.apl.washington.edu
Mon Jul 12 19:38:00 GMT 2004


On Mon, Jul 12, 2004 at 09:26:49PM +0200, Tobias Schl?ter wrote:
> Toon Moene wrote:
> >>Done as below. There is a difference from g77: g77 pads strings on
> >>continued lines, i.e.
> >>      t = "STRING
> >>     1TEST"
> >>will let t have a bunch of spaces between "STRING" and "TEST". We don't
> >>do this, but since we never did, and noone complained, I guess that's no
> >>issue.
> > 
> > 
> > Not so fast - this is fixed form code, so every line is 72 characters 
> > long.  g77 was quite innovative in treating this right - IIRC, DEC 
> > changed its compiler to match g77's behaviour.
> > 
> 
> Hm, g77 came out sometime in the 90ies, and this feature was an
> innovation? I can't believe many people rely on this.
> 
> I guess this counts as a complaint, I will update my patch.
> 

I'm not complaining, just offering a data point with NAG's compiler
and its dusty deck option.

troutmask:kargl[203] cat a.f
      program a
      character*100 t
      t = "STRING
     1TEST"
      print *, t
      end
troutmask:kargl[204] f95 -dusty -o a a.f
Obsolescent: a.f, line 1: Fixed source form
troutmask:kargl[205] ./a
 STRING                                                       TEST                                   


-- 
Steve



More information about the Fortran mailing list