This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66643] Missing compilation error for formatted data transfer without format
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Jun 2015 16:16:02 +0000
- Subject: [Bug fortran/66643] Missing compilation error for formatted data transfer without format
- Auto-submitted: auto-generated
- References: <bug-66643-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66643
--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Minimalistic code :
$ cat z_write_none.f90
program p
write (*)
end
$ gfortran -g -O0 -Wall -fcheck=all z_write_none.f90
$ a.out
At line 2 of file z_write_none.f90 (unit = 6, file = 'stdout')
Fortran runtime error: Missing format for FORMATTED data transfer
---
As already known, correct code might look like :
$ cat z_write_fmt_ok.f90
program p
write (*, *) 1
print *, 'a'
print *
end