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/47434] Wrong field width for NaN with (F0.n) formatting


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47434

--- Comment #3 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-01-27 12:47:04 UTC ---
I agree to fix the NaN case. I have the patch already.

Regarding the other cases:

The copy of the F2008 standard I have says in 10.7.2.3.2 F editing:

"When w is zero, the processor selects the field width."

I also see this:

"Leading zeros are not permitted except for an optional zero immediately to the
left of the decimal symbol if the magnitude of the value in the output field is
less than one."

Similarly for the '+' sign on Inf.  Until now we have chosen to emit the
optional characters.


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