Assume the following case: One had somewhere '(3(a,....),f)', now one copies this and realizes that one does not need the 3(..) anymore. Result: '(a,....),f)' Ups, the ",f)" is ignored.
Currently, gfortran does not warn in such a case. Expected: gfortran warns at compile time Ifort (9.1) even default warns in such a case: fortcom: Warning: test.f90, line 5: The extra characters in the format specification will be ignored ['(a),f)'] write(*,'(a),f)') 'Hello', r --------------^ Test case: -------------- program test implicit none real :: r r = 1.0 write(*,'(a),f)') 'Hello', r end program test -------------- -- Summary: Warn when ignoring extra characters in the format specification 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=28039