Can't we read namelists from stdin anymore ?

Toon Moene toon@moene.org
Sun Oct 5 10:11:00 GMT 2014


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



More information about the Fortran mailing list