public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/34405]  New: unformatted stream prohibits BACKSPACE
@ 2007-12-09 12:52 tkoenig at gcc dot gnu dot org
  2007-12-09 13:22 ` [Bug libfortran/34405] " tkoenig at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2007-12-09 12:52 UTC (permalink / raw)
  To: gcc-bugs

Currently, we ignore the following:

$ cat unformatted_stream_backspace.f90 
program main
  open(2003,form="unformatted",access="stream")
  write (2003) 1
  write (2003) 2
  backspace 2003
end program main
$ gfortran unformatted_stream_backspace.f90 
$ ./a.out
$

This code is actually illegal, we could (but are not required to)
catch this:

F 2003 draft, 9.7:

A file that is connected for unformatted stream access shall not be referred to
by a BACKSPACE statement.


-- 
           Summary: unformatted stream prohibits BACKSPACE
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: enhancement
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34405


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-12-13 19:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-09 12:52 [Bug libfortran/34405] New: unformatted stream prohibits BACKSPACE tkoenig at gcc dot gnu dot org
2007-12-09 13:22 ` [Bug libfortran/34405] " tkoenig at gcc dot gnu dot org
2007-12-09 18:00 ` jvdelisle at gcc dot gnu dot org
2007-12-13 19:36 ` tkoenig at gcc dot gnu dot org
2007-12-13 19:41 ` tkoenig at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).