This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/18879] ? not supported in namelist input
- From: "Thomas dot Koenig at online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2004 16:24:11 -0000
- Subject: [Bug libfortran/18879] ? not supported in namelist input
- References: <20041207213320.18879.Thomas.Koenig@online.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From Thomas dot Koenig at online dot de 2004-12-08 16:24 -------
(In reply to comment #1)
> Is this a language extension? Seems likely, as the standard has no concept of
> stdin and stdout. Could you point to someplace where this extension is specified?
It's in the comments to io.h (line 76 ff):
Even more complex, during the execution of a program containing a
namelist READ statement, you can specify a question mark character(?)
or a question mark character preceded by an equal sign(=?) to get
the information of the namelist group. By '?', the name of variables
in the namelist will be displayed, by '=?', the name and value of
Also, check out http://h18009.www1.hp.com/fortran/docs/lrm/lrm0372.htm .
It's specified in green, which I suppose means that it is an extension.
Googling for "namelist fortran question mark" will lead to other
examples.
Offhand, I can't find a UNIX compiler that doesn't support it. g77 also
tries, but the support there is buggy (see PR 18874).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18879