[Bug fortran/36942] iostat and/or end= and Err= don't work in read statements, unformatted reads
--- Comment #7 from kargl at gcc dot gnu dot org 2008-07-26 01:18 --- (In reply to comment #6) > Kargl > > Thanks again, this really helped me out > > Mike > > PS, I like the replica... > The problem does not appear in 4.2.5 or 4.4.0. I don't have a 4.3.1 compiler installed, so can't tested. I'm closing this as FIXED. PS: Most people don't know about Trout Mask Replica. -- kargl at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36942
[Bug fortran/36942] iostat and/or end= and Err= don't work in read statements, unformatted reads
--- Comment #6 from kyon at verizon dot net 2008-07-26 00:10 --- Subject: Re: iostat and/or end= and Err= don't work in read statements, unformatted reads Kargl Thanks. I'm now in the process of attempting to update my gcc collection to at least 4.3. If you can verify this will work, I'd appreciate it. (I'm using fedora, and fc9 has 4.3). If you can't, still thanks. This at least means I'm not going completely bonkers. ### Ok, my email situation is so bad, I got the newer compilers installed and working, and 4.3.0-8, specifically the fc9 version, gcc-gfortran-4.3.0-8, is working like a champ. This before this message actually made it off my machine. ### Thanks again, this really helped me out Mike PS, I like the replica... kargl at gcc dot gnu dot org wrote: > --- Comment #3 from kargl at gcc dot gnu dot org 2008-07-25 22:41 --- > Update your ancient compiler. > > troutmask:sgk[211] gfc --version > GNU Fortran (GCC) 4.2.5 20080702 (prerelease) > troutmask:sgk[212] gfc -o z m.f > troutmask:sgk[213] ./z >1 0 0 > STOP ERror > > troutmask:sgk[214] gfc4x --version > GNU Fortran (GCC) 4.4.0 20080611 (experimental) > troutmask:sgk[215] gfc4x -o z m.f > troutmask:sgk[216] ./z >1 0 0 > STOP ERror > > > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36942
[Bug fortran/36942] iostat and/or end= and Err= don't work in read statements, unformatted reads
--- Comment #5 from michael dot e dot olsen at nasa dot gov 2008-07-25 22:51 --- Created an attachment (id=15964) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15964&action=view) Version showing iostat isn't distinguishing either. This version is a little more involved, and opens and closes the file to create error and end conditions. iostat allways returns 0 for normal cases, and -1 for either end or error conditions -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36942
[Bug fortran/36942] iostat and/or end= and Err= don't work in read statements, unformatted reads
--- Comment #4 from kargl at gcc dot gnu dot org 2008-07-25 22:45 --- Your iostat code with the same compilers shows troutmask:sgk[219] ./z ival(should indicate normal) 0 ival(should indicate normal) 0 ival(should indicate end) -1 File closed and then reopened for errors... ival(should indicate error) 17 STOP making sense troutmask:sgk[220] gfc4x -o z n.f troutmask:sgk[221] ./z ival(should indicate normal) 0 ival(should indicate normal) 0 ival(should indicate end) -1 File closed and then reopened for errors... ival(should indicate error)5016 STOP making sense -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36942
[Bug fortran/36942] iostat and/or end= and Err= don't work in read statements, unformatted reads
--- Comment #3 from kargl at gcc dot gnu dot org 2008-07-25 22:41 --- Update your ancient compiler. troutmask:sgk[211] gfc --version GNU Fortran (GCC) 4.2.5 20080702 (prerelease) troutmask:sgk[212] gfc -o z m.f troutmask:sgk[213] ./z 1 0 0 STOP ERror troutmask:sgk[214] gfc4x --version GNU Fortran (GCC) 4.4.0 20080611 (experimental) troutmask:sgk[215] gfc4x -o z m.f troutmask:sgk[216] ./z 1 0 0 STOP ERror -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36942
[Bug fortran/36942] iostat and/or end= and Err= don't work in read statements, unformatted reads
--- Comment #2 from michael dot e dot olsen at nasa dot gov 2008-07-25 22:37 --- Created an attachment (id=15963) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15963&action=view) Version showing iostat isn't distinguishing either. This version is a little more involved, and opens and closes the file to create error and end conditions. iostat allways returns 0 for normal cases, and -1 for either end or error conditions -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36942
[Bug fortran/36942] iostat and/or end= and Err= don't work in read statements, unformatted reads
--- Comment #1 from michael dot e dot olsen at nasa dot gov 2008-07-25 22:35 --- Created an attachment (id=15962) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15962&action=view) Coding to reproduce bug described Didn't know I could add attachment. I'll add one demonstrating that iostat has the same behavior -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36942