------- Comment #1 from burnus at gcc dot gnu dot org 2008-06-02 14:43 ------- Jerry, is this patch inserted at the right place or is there a better place? Where do you think one should modify in order to get g0 working (PR36420 / F2008)?
Index: libgfortran/io/write.c =================================================================== --- libgfortran/io/write.c (Revision 136271) +++ libgfortran/io/write.c (Arbeitskopie) @@ -340,7 +340,11 @@ write_decimal (st_parameter_dt *dtp, con char itoa_buf[GFC_BTOA_BUF_SIZE]; w = f->u.integer.w; - m = f->u.integer.m; + + if (f->format == FMT_G) + m = 0; + else + m = f->u.integer.m; n = extract_int (source, len); -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jvdelisle at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36421