Re: Need interpretation



In article <ron-shepard-D65E29.01514223122005@xxxxxxxxxxxxxxxxxxxxxxxx>,
Ron Shepard <ron-shepard@xxxxxxxxxxxxxxxxxx> writes:
>
> I think "2" should be the output on the last line, but some
> compilers don't handle the implicit endfile correctly and they print
> out "1" instead. My version of gfortran happens to print out "0",
> which is just an outright error I think.
>

gcc version 4.2.0 20051218 (experimental)
kargl[204] gfc4x -o z k.f90
kargl[205] ./z
ierr= -1 (should be negative)
i= 2 (should be 2)


gcc version 4.1.0 20051218 (prerelease)
kargl[206] gfc41 -o z k.f90
kargl[207] ./z
ierr= -1 (should be negative)
i= 2 (should be 2)

--
Steve
http://troutmask.apl.washington.edu/~kargl/
.



Relevant Pages

  • Re: g++ optimisations in AlphaLinux
    ... > [Crossposted to clf in case Steve L sees it and can give a working link...] ... >> You should get the compilers too. ... Prev by Date: ...
    (comp.os.linux.alpha)
  • Re: ifort switches for mod files and line-number output
    ... > Thanks Steve. ... I will pay more attention to the intel forums. ... he's the same Steve who has taken care of this series of Fortran ... compilers, I second Steve's advice. ...
    (comp.lang.fortran)
  • Re: Kind of NOT integer constant
    ... > should yield Fortran 95 processor dependant behaviour? ... in both compilers? ... Prev by Date: ...
    (comp.lang.fortran)
  • Re: why doesnt this template work
    ... Steve wrote: ... compilers still don't support it. ... give a warning in this case. ... export.cpp:1: warning: keyword `export' not implemented, ...
    (comp.lang.cpp)
  • Re: Intent of the (u)int_fastN_t types
    ... twenty years ago, the C compilers for MC68000 ... >> Sometimes they even targetted the same operating system. ... Antoine ... Prev by Date: ...
    (comp.std.c)