This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28039] New: Warn when ignoring extra characters in the format specification
- From: "tobias dot burnus at physik dot fu-berlin dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2006 10:16:53 -0000
- Subject: [Bug fortran/28039] New: Warn when ignoring extra characters in the format specification
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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