http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58000
Bug ID: 58000 Summary: Accept OPEN( ... NAME=) with -std=legacy Product: gcc Version: 4.9.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Some Fortran compilers supported: OPEN(99, NAME='filename') while the Fortran standard only permits OPEN(99, FILE='filename') I think it would be useful to also permit 'NAME=' with -std=legacy. And to print a nice error message with -std=f*/gnu, which tells the user that the proper specifier is "FILE=". NAME is accepted by default by Absoft, Intel and PGI. (Intel warns with -stand f95/f03 but still accepts it.) Sun/Oracle have "WARNING: NAME= will be ignored, because -f77=input/output option is absent" - and accept it silently with either suboption. Note: It should be still rejected with -std=gnu as that's only part of legacy code and given that many compiler do not support it. For instance: g95, pathf95, gfortran, NAG f95 and crayftn don't.