This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29452] Keyword check for specifiers in WRITE, READ and OPEN/CLOSE
- 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: 13 Oct 2006 10:13:30 -0000
- Subject: [Bug fortran/29452] Keyword check for specifiers in WRITE, READ and OPEN/CLOSE
- References: <bug-29452-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from tobias dot burnus at physik dot fu-berlin dot de 2006-10-13 10:13 -------
Some tests show:
open(13,file='foo',form='format')
close(13,status='del')
compiles and runs in gfortran.
Expected:
- A run-time error is shown.
- A compile-time-error is shown (probably fixed by FX patch, not checked)
* * *
write(13,'(a)',advance='N') 'Hello:'
This gives a compile-time error, whereas
str = 'N'
write(13,'(a)',advance=str) 'Hello:'
gives not a run-time error.
write(13,'(a)',advance='Not') 'Hello:'
gives no compile-time error, but a run-time error.
--
tobias dot burnus at physik dot fu-berlin dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Do compile-time specifier |Keyword check for specifiers
|checks for WRITE and READ |in WRITE, READ and
| |OPEN/CLOSE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29452