[Bug fortran/43078] New: gfortran: spurious warning of line truncation at col 72

patrick dot wallace at stfc dot ac dot uk gcc-bugzilla@gcc.gnu.org
Mon Feb 15 13:58:00 GMT 2010


ANSI X3.9-1978 defines Fortran line length as 72.  But gfortran permits only 71
characters before issuing a warning.  For example, this valid Fortran source
code:

      WRITE ( *, '(1X,A3,F15.6,'' ='',F15.6,''+'',F14.6,'' =''' //
     :                 'I5,2(''/'',I2.2),I3,2('':'',I2.2),''.'',I6.6)' )
     :                           SCALE, D1+D2, D1, D2, IY, IM, ID, IHMSF

produces this warning:

     :                           SCALE, D1+D2, D1, D2, IY, IM, ID, IHMSF
                                                                       1
Warning: Line truncated at (1)


-- 
           Summary: gfortran: spurious warning of line truncation at col 72
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: patrick dot wallace at stfc dot ac dot uk


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43078



More information about the Gcc-bugs mailing list