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.

Reply via email to