https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79540
John David Anglin <danglin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #45989|0 |1 is obsolete| | --- Comment #22 from John David Anglin <danglin at gcc dot gnu.org> --- Created attachment 46014 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46014&action=edit Patch Previous patch broke gfortran.dg/fmt_g0_6.f08 on hppa64-hp-hpux11.11. It seems we need to handle the case where ndigits is zero.