https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88269

            Bug ID: 88269
           Summary: ICE in gfc_format_decoder, at fortran/error.c:947
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

With invalid code, down to at least gcc-5 :


$ cat z1.f90
program p
   write (end=1e1)
   write (end=1d1)
   write (end=1q1)
end


$ gfortran-9-20181125 -c z1.f90
0x619a5e gfc_format_decoder
        ../../gcc/fortran/error.c:947
0x131c83e pp_format(pretty_printer*, text_info*)
        ../../gcc/pretty-print.c:1390
0x13121e5 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        ../../gcc/diagnostic.c:1015
0x6198fc gfc_error_opt
        ../../gcc/fortran/error.c:1313
0x61aea0 gfc_error(char const*, ...)
        ../../gcc/fortran/error.c:1342
0x63c9b2 check_io_constraints
        ../../gcc/fortran/io.c:3755
0x63c9b2 match_io
        ../../gcc/fortran/io.c:4301
0x66b341 match_word
        ../../gcc/fortran/parse.c:65
0x66eeb2 decode_statement
        ../../gcc/fortran/parse.c:585
0x66f6aa next_free
        ../../gcc/fortran/parse.c:1234
0x66f6aa next_statement
        ../../gcc/fortran/parse.c:1466
0x671a14 parse_spec
        ../../gcc/fortran/parse.c:3674
0x673787 parse_progunit
        ../../gcc/fortran/parse.c:5671
0x674e09 gfc_parse_file()
        ../../gcc/fortran/parse.c:6211
0x6bdaff gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to