Bug 26595 - gfortran - jump to error label not working correctly after reading EOF
Summary: gfortran - jump to error label not working correctly after reading EOF
Status: RESOLVED DUPLICATE of bug 26509
Alias: None
Product: gcc
Classification: Unclassified
Component: libfortran (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on: 26509
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-07 14:27 UTC by Dale Ranta
Modified: 2006-03-08 01:16 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dale Ranta 2006-03-07 14:27:28 UTC
The second read should jump to the label with out comment.

[dranta:~/tests/gfortran-D] dir% gfortran -o write29 write29.f
[dranta:~/tests/gfortran-D] dir% write29
At line 7 of file write29.f
Fortran runtime error: End of file
[dranta:~/tests/gfortran-D] dir% cat write29.f
      program test
      dimension idata(1011)
      open(unit=11,form='unformatted')
       read(11,end=        1000 )idata
       call abort()
 1000  continue
       read(11,err=        1001 )idata
       call abort()
 1001  continue
      close(11,status='delete')  
      stop
      end
Comment 1 Andrew Pinski 2006-03-07 15:52:45 UTC
Hmm, I almost want to say this is a dup of bug 26509.
Comment 2 Jerry DeLisle 2006-03-08 01:16:03 UTC
Yes it is.  See my comments there.  I am working this issue.

*** This bug has been marked as a duplicate of 26509 ***