[Bug fortran/82419] Error: Expected variable in READ statement in (1)

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Tue Oct 3 18:27:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82419

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
(dat(1:cn,n)) is not a variable, but an expression. Remove the enclosing
parentheses and your code will compile.

BTW the provided code needs a some more surgery in order to be compiled (dlc
not defines, iu, filecolumns, and filelines not typed).


More information about the Gcc-bugs mailing list