public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/19668] New: endless loop on read(10,*) with DOS file
@ 2005-01-28 11:10 Thomas dot Koenig at online dot de
  2005-01-28 11:14 ` [Bug libfortran/19668] " Thomas dot Koenig at online dot de
  2005-01-28 22:47 ` Thomas dot Koenig at online dot de
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-01-28 11:10 UTC (permalink / raw)
  To: gcc-bugs

$ cat dosfile.f90
program main
  character(len=1), parameter :: cr = achar(13)
  write(10,'(2A)') '1',cr  ! Generate CR-LF on Unix
  rewind(10)
  read (*,*) n
end
$ gfortran dosfile.f90
$ time ./a.out
(^C here, or this loops forever)

real    0m1.260s
user    0m0.000s
sys     0m0.005s
$ gfortran -v ; gfortran -dumpmachine
Using built-in specs.
Configured with: ../gcc-4.0-20050123/configure --prefix=/home/zfkts
--enable-languages=c,f95
Thread model: posix
gcc version 4.0.0 20050123 (experimental)
ia64-unknown-linux-gnu
$ od -c fort.10
0000000   1  \r  \n
0000003

        Thomas

-- 
           Summary: endless loop on read(10,*) with DOS file
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Thomas dot Koenig at online dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug libfortran/19668] endless loop on read(10,*) with DOS file
  2005-01-28 11:10 [Bug libfortran/19668] New: endless loop on read(10,*) with DOS file Thomas dot Koenig at online dot de
@ 2005-01-28 11:14 ` Thomas dot Koenig at online dot de
  2005-01-28 22:47 ` Thomas dot Koenig at online dot de
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-01-28 11:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Thomas dot Koenig at online dot de  2005-01-28 11:14 -------
This bug is shared by both g77 3.2.3 and ifort 8.1.

Good company, at least :-)

        Thomas

-- 


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


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

* [Bug libfortran/19668] endless loop on read(10,*) with DOS file
  2005-01-28 11:10 [Bug libfortran/19668] New: endless loop on read(10,*) with DOS file Thomas dot Koenig at online dot de
  2005-01-28 11:14 ` [Bug libfortran/19668] " Thomas dot Koenig at online dot de
@ 2005-01-28 22:47 ` Thomas dot Koenig at online dot de
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-01-28 22:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Thomas dot Koenig at online dot de  2005-01-28 22:47 -------
Ouch, I should read my test programs before I post bug reports.

Resolving as invalid.

Thomas

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2005-01-28 22:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-28 11:10 [Bug libfortran/19668] New: endless loop on read(10,*) with DOS file Thomas dot Koenig at online dot de
2005-01-28 11:14 ` [Bug libfortran/19668] " Thomas dot Koenig at online dot de
2005-01-28 22:47 ` Thomas dot Koenig at online dot de

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).