https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66643
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-06-23 Ever confirmed|0 |1 Severity|normal |enhancement --- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- I think the relevant constrain in the standard is > 9.6.4.5.2 Unformatted data transfer > 1 If the file is not connected for unformatted input/output, unformatted data > transfer is prohibited. AFAIU the restriction is on the user and not on the compiler, even if I agree that it would be better to have it detected at compile time. This is related to pr28397 and pr 56675. AFAICT this is not a regression (I see it on 4.3.1).