This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34599] IOSTAT variable in data transfer input/output list
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Dec 2007 16:20:25 -0000
- Subject: [Bug fortran/34599] IOSTAT variable in data transfer input/output list
- References: <bug-34599-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from tkoenig at gcc dot gnu dot org 2007-12-27 16:20 -------
This is invalid (but we could catch it, as an enhancement).
>From the F95 draft, 9.4.1:
In a data transfer statement, the variable specified in an IOSTAT= or a SIZE=
specifier, if any, shall
not be associated with any entity in the data transfer input/output list
(9.4.2) or
namelist-group-object-list, nor with a do-variable of an io-implied-do in the
data transfer input/output list.
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2007-12-27 16:20:25
date| |
Summary|Order: IOSTAT is wrongly set|IOSTAT variable in data
|before data is transferred |transfer input/output list
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34599