Bug 18874 - ? in namelist read leads to I/O recursion
Summary: ? in namelist read leads to I/O recursion
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libf2c (show other bugs)
Version: 3.2.3
: P2 normal
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-07 16:28 UTC by Thomas Koenig
Modified: 2005-09-26 00:56 UTC (History)
1 user (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 Thomas Koenig 2004-12-07 16:28:56 UTC
Typing "?" for a namelist input is supposed to
yield a description of the input variables on
standard output.  This doesn't work with g77:

$ g77 -v
Reading specs from /usr/lib/gcc-lib/ia64-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit --host=ia64-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)
$ ./a.out
$ cat nl.f
      program main
      namelist /nl/ a
      read (*,nl)
      print *,a
      end
$ g77 nl.f && a.out
?
I/O recursion: I/O started while already doing I/O
apparent state: unit 5 (unnamed)
last format: list io
lately reading direct formatted external IO
Aborted
Comment 1 Andrew Pinski 2004-12-07 19:01:25 UTC
I don't know if any libf2c bugs are going to be fixed any more since 4.0.0 uses a different library for 
fortran library.
Comment 2 Bud Davis 2004-12-08 01:38:42 UTC
i would imagine that the number of bugs fixed in g77 / libf2c will be small, but
gcc3.4.X will be actively supported for a while.

having the bugs reported let's users know that this is a known problem.  maybe
someone will fix it...even if it is not included in a release, the user might
want the fix.

so, my opinion, if bugs are found in g77/libf2c, they should be reported.   if
someone wants to fix them, great, but not likely due to most effort going in to
gfortran.


--bud davis

 
Comment 3 Andrew Pinski 2005-06-19 14:45:37 UTC
This works with me in 3.4.0.
Comment 4 Andrew Pinski 2005-09-26 00:56:07 UTC
Fixed in 3.4.0.