[Bug fortran/13257] New: [gfortran] Error instead of warning for missing comma in format string
dann at godzilla dot ics dot uci dot edu
gcc-bugzilla@gcc.gnu.org
Mon Dec 1 05:18:00 GMT 2003
With: gcc version 3.5-tree-ssa 20031130 (merged 20031123)
test.f90
subroutine mysub
dimension ibar(5)
write (3,1001) ( ibar(m), m = 1, 5 )
1001 format (/5x,' ',i4' '/ )
return
end
gfortran -c test.f90 -ffixed-form
In file test.f90:5
1001 format (/5x,' ',i4' '/ )
1
Error: Missing comma in format string at (1)
In file test.f90:3
write (3,1001) ( ibar(m), m = 1, 5 )
1
Error: FORMAT label 1001 at (1) not defined
g77 gives a warning, but still compiles the code.
Intel's compiler compiles the above code.
Code like this appears in SPEC95
--
Summary: [gfortran] Error instead of warning for missing comma in
format string
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dann at godzilla dot ics dot uci dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13257
More information about the Gcc-bugs
mailing list