This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: read float into integer
- From: Tobias Burnus <burnus at net-b dot de>
- To: pkienzle <pkienzle at gmail dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Wed, 29 Aug 2007 22:14:49 +0200
- Subject: Re: read float into integer
- References: <12394785.post@talk.nabble.com>
pkienzle wrote:
> I don't know if it is a bug, but gfortran does not truncate floating point
> values toward 0 on input. The f90 code I'm trying to compile assumes that
> it does.
>
This seems to be a very special Intel Fortran Compiler feature as I get:
Couldn't read integer.
with gfortran, NAG f95, g95, openf95 and sunf95 (all give exactly the
same error message). Only ifort shows:
2 T
It seems as if you rely on a very special compiler extension.
Tobias