This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41678] Format label as second item in io control list is rejected
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2009 07:19:53 -0000
- Subject: [Bug fortran/41678] Format label as second item in io control list is rejected
- References: <bug-41678-10743@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from dominiq at lps dot ens dot fr 2009-10-12 07:19 -------
The F95 standard says:
The F, E, EN, ES, and D edit descriptors specify the editing of real and
complex data.
An input/output list item corresponding to an F, E, EN, ES, or D edit
descriptor shall be real or complex.
^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^
The G edit descriptor also may be used to edit real and complex data
(10.5.4.1.2).
So I think gfortran is right to reject
read(unit=2, 100) i
100 format (f10.7)
even if my reading of the "shall", is that it is not a "constraint" for the
compiler but for the user.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41678