This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Can't we read namelists from stdin anymore ?
- From: Toon Moene <toon at moene dot org>
- To: Jerry DeLisle <jvdelisle at charter dot net>, Janne Blomqvist <blomqvist dot janne at gmail dot com>
- Cc: gfortran <fortran at gcc dot gnu dot org>
- Date: Sun, 05 Oct 2014 12:10:48 +0200
- Subject: Re: Can't we read namelists from stdin anymore ?
- Authentication-results: sourceware.org; auth=none
- References: <542E681F dot 4030601 at moene dot org> <CAO9iq9HPc=EBh8y3Wj6_TNdQAXxfUB6PwnSyXtFUKBMXY6qzUQ at mail dot gmail dot com> <542E9E52 dot 1060501 at charter dot net>
On 10/03/2014 03:02 PM, Jerry DeLisle wrote:
On 03/10/14 04:59, Janne Blomqvist wrote:
On Fri, Oct 3, 2014 at 12:10 PM, Toon Moene <toon@moene.org> wrote:
---snip---
Yes, of course it *should* work (please file a PR, if nothing else).
The problem is that the (by now quite comprehensive!) testsuite only
tests using regular files, so bugs that only affect special files like
terminals, pipes, etc. tend to slip by undetected. Suggestions (or
even better, code!) on how to test special files within dejagnu
welcome. Or if that's not possible, perhaps creating an external
gfortran IO testsuite that can test functionality with special files
(how? when? who?).
... and of course please include a small (if possible) example of the
namelist file as well as the source code that fails so we can try to
understand what is going on here.
It's in Bugzilla now: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63460
The program is:
character*10 file /'noot.hdf'/
character*5 aap(10) /10*""/
integer par(10) /10*3/
namelist /namlis/ file, aap, par
read (5, namlis)
write(6, namlis)
end
and the namelist:
&NAMLIS
file='aap.hdf', aap(5)='noot', par(5)=6
/
Kind regards,
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news