This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/43298] fortran library does not read in NaN -Inf or Inf
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2010 17:05:11 -0000
- Subject: [Bug libfortran/43298] fortran library does not read in NaN -Inf or Inf
- References: <bug-43298-12362@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from burnus at gcc dot gnu dot org 2010-03-12 17:05 -------
(In reply to comment #4)
> Actually, in list_read.c's parse_real gfortran already handles inf(inity) and
> nan (_but_ _not _"nan(string)"). Thus, using 'read(*,*) a' works.
Also list_read.c's "read_real" handles INF/NAN but not "NaN(...)".
Thus:
- parse_real needs to support NaN(alphanum)
- read_real needs to support NaN(alpanum)
- read_f needs to get Inf+NaN support
- convert_real needs to get the comment updated (assuming POSIX/C99 strtod)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43298