This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, libgfortran] PR31052 Bad IOSTAT values when readings NAMELISTs past EOF
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Jerry DeLisle <jvdelisle at verizon dot net>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 9 Mar 2007 20:50:02 -0800
- Subject: Re: [patch, libgfortran] PR31052 Bad IOSTAT values when readings NAMELISTs past EOF
- References: <45F23755.2050005@verizon.net>
On Fri, Mar 09, 2007 at 08:43:01PM -0800, Jerry DeLisle wrote:
>
> This problem was not quite what I originally thought. The function
> test_endfile was setting the endfile flag to AT_ENDFILE for the test case
> provided in the PR.
>
> Commenting out test_endfile in st_rewind resolves the test case but
> regresses dev_null.f90. All other test cases past. So, it appears that
> test_endfile is needed for the special case when rewinding /dev/null. This
> seems weird to me to begin with, but how does one determine that a file is
> /dev/null?
>
I haven't read the PR nor your patch. But, if
someone is trying to rewind /dev/null, he/she
is an idiot. If it was me, I'd close the PR
with a rather biting comment about stupidity.
--
Steve