Split off of bug 27304 Currently, gfortran only detects that the IO format descriptor contains insufficient data at run time. It would be great (though of low priority) if it would find them at compile time. Examples: write(*,'(abc)') n write(10,"(i7,(' abcd'))", err=10) n, n As of fixing bug 27304 this gives an run-time error message. As in my case the write(*,*) is deeply buried in an "if(very rarely true) write(*,*)", the compile-time error would be of great help [run time of the program > one day].
Reference: In the 2004-05 "Fortran 2003" draft (10.3) I find: "If an input/output list specifies at least one effective list item, at least one data edit descriptor shall exist in the format specification." -- Summary: gfortran: Abort compiling if there are insufficient data descriptors in format after reversion Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tobias dot burnus at physik dot fu-berlin dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27436