------- 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