[Bug fortran/58000] Accept OPEN( ... NAME=) with -std=legacy
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Sun Apr 10 12:06:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58000
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Patch I am planning to submit
--- ../_clean/gcc/fortran/gfortran.texi 2016-01-04 19:51:09.000000000 +0100
+++ gcc/fortran/gfortran.texi 2016-04-10 14:00:11.000000000 +0200
@@ -2148,6 +2148,7 @@ code that uses them running with the GNU
@c * Omitted arguments in procedure call::
* Alternate complex function syntax::
* Volatile COMMON blocks::
+* OPEN( ... NAME=)::
@end menu
@@ -2355,6 +2356,19 @@ invalid standard Fortran syntax and is n
+@node OPEN( ... NAME=)
+@subsection @code{OPEN( ... NAME=)}
+@cindex @code{NAM}
+
+Some Fortran compilers, including @command{g77}, let the user declare
+@code{OPEN( ... NAME=)}. This is
+invalid standard Fortran syntax and is not supported by
+@command{gfortran}. @code{OPEN( ... NAME=)} should be replaced
+with @code{OPEN( ... FILE=)}.
+
+
+
+@c ---------------------------------------------------------------------
@c ---------------------------------------------------------------------
@c Mixed-Language Programming
@c ---------------------------------------------------------------------
More information about the Gcc-bugs
mailing list