https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82620
Bug ID: 82620 Summary: [PDT] ICE: free_expr0(): Bad expr type (at fortran/expr.c:497) Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Tracking an issue due to a typo (in lack of a better example) : $ cat z1.f90 program p type t(a) integer, len :: a end type type(t(:)), allocatable :: x, y allocate(t(4) :: x) allocate)t(7) :: y) end $ gfortran-8-20171015 -c z1.f90 f951: internal compiler error: free_expr0(): Bad expr type 0x68da6f gfc_internal_error(char const*, ...) ../../gcc/fortran/error.c:1349 0x68e81b free_expr0 ../../gcc/fortran/expr.c:497 0x68e8c4 gfc_free_expr(gfc_expr*) ../../gcc/fortran/expr.c:518 0x68e8c4 gfc_free_actual_arglist(gfc_actual_arglist*) ../../gcc/fortran/expr.c:534 0x6be3aa gfc_match_allocate() ../../gcc/fortran/match.c:4324 0x6dbac9 match_word_omp_simd ../../gcc/fortran/parse.c:93 0x6df8f9 match_word ../../gcc/fortran/parse.c:439 0x6df8f9 decode_statement ../../gcc/fortran/parse.c:439 0x6e0fb4 next_free ../../gcc/fortran/parse.c:1225 0x6e0fb4 next_statement ../../gcc/fortran/parse.c:1457 0x6e3be6 parse_executable ../../gcc/fortran/parse.c:5230 0x6e4f3e parse_progunit ../../gcc/fortran/parse.c:5660 0x6e6354 gfc_parse_file() ../../gcc/fortran/parse.c:6174 0x72a6bf gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204