https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83811
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-01-14 Assignee|unassigned at gcc dot gnu.org |jvdelisle at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Further investigation is showing me that the buffer containing the float string is wrong before it goes into build_float_string. Ths means it has something to do with snprintf. In the wrong output case with write(s, '(1pe5.0e1)') 1.e-4, the buffer contains "+1.e-0" with nprinted=7. This indicates we have an off by 1 like error here.