This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]