This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/82419] Error: Expected variable in READ statement in (1)
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Oct 2017 18:40:25 +0000
- Subject: [Bug fortran/82419] Error: Expected variable in READ statement in (1)
- Auto-submitted: auto-generated
- References: <bug-82419-4@http.gcc.gnu.org/bugzilla/>
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.