Test case:
---------------------------------
program test
implicit none
integer :: n
n = 1
write(*,'(''n'')') n
end program test
---------------------------------
gfortran -Wall -o test test1.f90 [4.1.0 (SUSE Linux); 4.2.0 20060423]
Compiles without warning/error and ./test outputs "nn".
Expected:
During compile: Bail out with an error message or at least show a warning.
The NAGWare Fortran 95 compiler Release 5.0(414)) for comparison:
------------
f95 -o test test1.f90
Error: test1.f90, line 5: No data-edit descriptor for effective item
[f95 error termination]
--
Summary: gfortran: Warn/abort when format in write does not fit
passed arguments
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
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=27304