------- Comment #1 from kargl at gcc dot gnu dot org 2006-09-28 04:06 ------- Please see section 9.3.1, 9.3.3, and 9.3.4 of the Fortran 95 Standard. You're first open statement closes the preconnected standard input unit, so your second and third "read *, n" is fucked up.
Hint use inquire to find an unused unit number or simply don't use a unit number of 5 or 6. -- kargl at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29259