[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:40:00 GMT 2017


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

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> since it compiled on a different system ...

Are you sure of that? If yes, the compiler was not behaving according the
standard.

I suspect that the original code was something such as

   read(20,*) ((dat(m,n),m=1,cn),n=1,ln)

dat(m,n),m=1,cn, being then replaced with dat(1:cn,n) without removing the
surrounding parentheses.


More information about the Gcc-bugs mailing list