This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35036] illegal E format descriptor produces wrong output
- From: "furue at hawaii dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2008 02:45:24 -0000
- Subject: [Bug fortran/35036] illegal E format descriptor produces wrong output
- References: <bug-35036-15709@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from furue at hawaii dot edu 2008-01-31 02:45 -------
Subject: Re: illegal E format descriptor produces wrong
output
| There is no restriction in F95 that d must be positive in Ew.d.
| In 10.6.5.1, it clearly states that k = 0 at the beginning of
| execution of an input/output statement. The wording you quote
| above is (almost) identical to F95 language, so one could argue
| that the -d < k <= 0 is true when d = 0 and k = 0.
I may be missing something, but "-d < k <= 0" doesn't hold
when d = 0 and k = 0. Notice the inequality "<". So, when k = 0,
how should we read the part we quote?
| In any event, gfortran is definitely giving a bogus answer
| of 0E+1, and your desired output of ******* is probably the
| right thing to do.
I like that. But, for the sake of curiosity, how does the Fortran
standard describe the process that leads to *******? I mean, suppose
E8.0 is legal, but still can we emit *******?
Ryo
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35036