http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50105
--- Comment #1 from Tobias Burnus 2011-08-17
06:22:20 UTC ---
Actually, I think that this bug is invalid - but wait for the answers at the J3
mailing list. The reason I think that I think that 6 asterisks should be
produced are stated below. However, it would not be the first time that I
missed something.
We have (refs = F2008):
R1007 data-edit-desc is ...
or G w [ . d [ E e ] ]
such that for G6.5, one has "w = 6".
And thus, I expect 6 "*" as: if the "characters produced exceeds the field
width, the processor shall fill the entire field of width w with asterisks"
Full quote:
10.7.2 Numeric editing, 10.7.2.1 General rules states:
"(5) On output, if an exponent exceeds its specified or implied width using the
E, EN, ES, D, or G edit descriptor, or the number of characters produced
exceeds the field width, the processor shall fill the entire field of width w
with asterisks. However, the processor shall not produce asterisks if the field
width is not exceeded when optional characters are omitted."