Found at
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/1086da75f7aed669

The following program is invalid as the (Holerith) string has 22 and not 21
characters. Thus the format is ...<Holerith string>T).

gfortran accepts the program at compile time, but rejects it at run time with:
Fortran runtime error: Positive width required in format
EVEL =',F7.4, 21H ONE-SIDED AT THE LEFT)
                                       ^
g95 and NAG f95 detect the problem already at compile time - gfortran should do
the same.


        WRITE(0,8001) SIG
        WRITE(6,8001) SIG
 8001 FORMAT(//,'     SIGNIFICANCE LEVEL =',F7.4, 21H ONE-SIDED AT THE LEFT)
end


-- 
           Summary: Edit descriptor checking (compile time) for
                    "<Holerith>T)"
           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: burnus at gcc dot gnu dot org


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

Reply via email to