If 'warn' after PRINT is removed, the snippet is accepted as is, without
further warning. I'm not sure if this kind of thing is legal to begin with, but
I'd at least expect a warning for both truncated lines.

$> cat trunc.f
      PRINT *, MIN(1                                                     nowarn
     &, 2)                               !                               warn
      END
$> gfortran-svn -ffixed-form -Wall -Wextra  trunc.f
trunc.f:2.72:

     &, 2)
                                                                        1
Warning: Line truncated at (1)

$> gfortran-svn -v
gcc version 4.4.0 20090217 (experimental) (GCC)


-- 
           Summary: fixed-form: silent line truncation in procedure calls
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dfranke at gcc dot gnu dot org


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

Reply via email to