https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101330
Bug ID: 101330 Summary: ICE in free_expr0(): Bad expr type 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: --- Started between 20210523 and 20210530 : $ cat z1.f90 !$omp task affinity (iterator(j=1:2: $ gfortran-12-20210704 -c z1.f90 -fopenmp f951: internal compiler error: free_expr0(): Bad expr type 0x6f7ee9 gfc_report_diagnostic ../../gcc/fortran/error.c:782 0x6f9a57 gfc_internal_error(char const*, ...) ../../gcc/fortran/error.c:1402 0x6fa901 free_expr0 ../../gcc/fortran/expr.c:509 0x6fa948 gfc_free_expr(gfc_expr*) ../../gcc/fortran/expr.c:530 0x743055 gfc_match_iterator ../../gcc/fortran/openmp.c:1082 0x744b89 gfc_match_omp_clauses ../../gcc/fortran/openmp.c:1367 0x74652e match_omp ../../gcc/fortran/openmp.c:3181 0x74e011 match_word ../../gcc/fortran/parse.c:65 0x74fa2f decode_omp_directive ../../gcc/fortran/parse.c:1073 0x753c55 next_free ../../gcc/fortran/parse.c:1325 0x753c55 next_statement ../../gcc/fortran/parse.c:1583 0x758e47 gfc_parse_file() ../../gcc/fortran/parse.c:6533 0x7a5c4f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:216