possible bug (accepting null character as input)
François-Xavier Coudert
Francois-Xavier.Coudert@lcp.u-psud.fr
Wed Feb 16 09:57:00 GMT 2005
> This may not be a bug. However (I don't use Fortran myself) the author
> of the original code from which this sample is derived tells me that
> every Fortran compiler he has ever used (over a period of 20+ years)
> shows the same behaviour as the Intel compiler.
I can't find a compiler that doesn't do what you expect (gfortran excluded,
that is).
> program testRead
> implicit none
> character(1) resp
> write (*,'('' hit return: '',$)')
> read (*,'(a)') resp
> write (*,'('' well done.'')')
> end
I filed it as 20005 in bugzilla
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20005).
FX
More information about the Fortran
mailing list