https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79886
--- Comment #1 from Manuel López-Ibáñez <lopezibanez at gmail dot com> --- This is probably a warning from the middle end with a printf %-code not supported by the Fortran FE's pretty printer. The solution is to either add support for it in the FE or switch to the middle end pp when entering the middle end. There are several bugs like this one. Another solution is to either not call into the middle end at arbitrary points during parsing only during gimplification (not sure if this is the case here) or move the warning to the FE (middle end warnings should be avoided if possible). On 6 Mar 2017 8:04 a.m., "marxin at gcc dot gnu.org" < gcc-bugzi...@gcc.gnu.org> wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79886 > > Bug ID: 79886 > Summary: [5/6/7 Regression] ICE in pp_format, at > pretty-print.c:681 > Product: gcc > Version: 7.0 > Status: UNCONFIRMED > Keywords: ice-on-valid-code > Severity: normal > Priority: P3 > Component: fortran > Assignee: unassigned at gcc dot gnu.org > Reporter: marxin at gcc dot gnu.org > CC: manu at gcc dot gnu.org > Target Milestone: --- > > Starting from r217383 we ICE: > > $ gfortran > /home/marxin/Programming/gcc/gcc/testsuite/gfortran. > fortran-torture/compile/pr26806.f90 > -Wpadded > f951: Warning: padding struct size to alignment boundary [-Wpadded] > f951: Warning: padding struct size to alignment boundary [-Wpadded] > ‘ > in pp_format, at pretty-print.c:681 > 0x1478169 pp_format(pretty_printer*, text_info*) > ../../gcc/pretty-print.c:681 > 0x146a9f8 diagnostic_report_diagnostic(diagnostic_context*, > diagnostic_info*) > ../../gcc/diagnostic.c:961 > 0x146ad53 diagnostic_impl > ../../gcc/diagnostic.c:1084 > 0x146b0cc warning(int, char const*, ...) > ../../gcc/diagnostic.c:1172 > 0xc5a315 place_field(record_layout_info_s*, tree_node*) > ../../gcc/stor-layout.c:1215 > 0xc5bafa layout_type(tree_node*) > ../../gcc/stor-layout.c:2375 > 0x7d4a66 gfc_finish_type(tree_node*) > ../../gcc/fortran/trans-types.c:2251 > 0x7acb43 gfc_build_st_parameter > ../../gcc/fortran/trans-io.c:222 > 0x7acb43 gfc_build_io_library_fndecls() > ../../gcc/fortran/trans-io.c:318 > 0x765c17 gfc_build_builtin_function_decls() > ../../gcc/fortran/trans-decl.c:3771 > 0x73b71a gfc_create_decls > ../../gcc/fortran/f95-lang.c:189 > 0x73b71a gfc_be_parse_file > ../../gcc/fortran/f95-lang.c:203 > > -- > You are receiving this mail because: > You are on the CC list for the bug.