This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/43298] fortran library does not read in NaN -Inf or Inf



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]