http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60751
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #8 from kargl at gcc dot gnu.org ---
(In reply to Walter Spector from comment #6)
> Adding that both READ and WRITE have this issue. Interestingly, the
> iolength version of INQUIRE does not:
>
> inquire (iolength=i), i
> 1
> Error: Expected expression in INQUIRE statement at (1)
It a g77 compatibility issue. From the g77 manual (page 190),
ยท The commas in `READ (5), I' and `WRITE (10), J'.
These commas are disallowed by FORTRAN 77, but, while strictly superfluous,
are syntactically elegant, especially given that commas are required in
statements such as `READ 99, I' and `PRINT *, J'. Many compilers permit
the superfluous commas for this reason.
This is part of GNU Fortran, which I agree a cesspool of vendor
extensions. I doubt that this will be changed (too many more
important things to work on). If you want strict conformance,
it is probably best to add -std=f95 or -std=f2003, or -std=2008
to your command line.