OpenFortranProject / ofp-sdf

SDF grammar for Fortran 2008 with constructors for AST
Other
23 stars 7 forks source link

Connect spec in an open statement doesn't accept nonstandard mode specifier #24

Open rasmussn opened 7 years ago

rasmussn commented 7 years ago

According to the Intel Fortran compiler documentation, MODE specifier is a nonstandard synonym for ACCESS. The following program demonstrates the usage:


rasmussn commented 7 years ago

The demonstration program is:

open(12,file=file2,status='old',mode='READ',err=40) end

rasmussn commented 7 years ago

Additional nonstandard specifiers are (from https://software.intel.com/en-us/node/678829):

DISP (DISPOSE) NAME (synonym for FILE) RECL (or RECORDSIZE) TYPE (synonym for STATUS)

There are actually several more (from casual glance at the Intel documentation)