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

            Bug ID: 102313
           Summary: [12 Regression] ICE in gfc_ascii_statement(): Bad
                    statement code
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Not really a regression, but changed between 20210808 and 20210822 :


$ cat z1.f90
!$omp end scope
end


$ gfortran-12-20210801 -c z1.f90 -fopenmp
f951: internal compiler error: gfc_ascii_statement(): Bad statement code
0x75faa9 gfc_report_diagnostic
        ../../gcc/fortran/error.c:874
0x761617 gfc_internal_error(char const*, ...)
        ../../gcc/fortran/error.c:1494
0x7bd910 gfc_ascii_statement(gfc_statement)
        ../../gcc/fortran/parse.c:2729
0x7bda98 unexpected_statement
        ../../gcc/fortran/parse.c:2871
0x7c10ba parse_progunit
        ../../gcc/fortran/parse.c:6161
0x7c24dc gfc_parse_file()
        ../../gcc/fortran/parse.c:6703
0x80f57f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:216

Reply via email to