[Bug fortran/29452] Keyword check for specifiers in WRITE, READ and OPEN/CLOSE

tobias dot burnus at physik dot fu-berlin dot de gcc-bugzilla@gcc.gnu.org
Fri Oct 13 10:13:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list