https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93601
Bug ID: 93601 Summary: [10 Regression] ICE: Invalid expression in gfc_element_size Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed between 20190630 and 20190728 : $ cat z1.f90 program p class(*), allocatable :: z z = z'1' end $ cat z2.f90 program p class(*), allocatable :: z z = (z'1') end $ gfortran-10-20190630 -c z1.f90 $ $ gfortran-10-20200202 -c z1.f90 f951: internal compiler error: Invalid expression in gfc_element_size. 0x649779 gfc_report_diagnostic ../../gcc/fortran/error.c:782 0x64ae9a gfc_internal_error(char const*, ...) ../../gcc/fortran/error.c:1402 0x6e6a92 gfc_element_size(gfc_expr*, unsigned long*) ../../gcc/fortran/target-memory.c:137 0x62d3b2 find_intrinsic_vtab ../../gcc/fortran/class.c:2722 0x62d3b2 gfc_find_vtab(gfc_typespec*) ../../gcc/fortran/class.c:2872 0x67ca42 gfc_match_assignment() ../../gcc/fortran/match.c:1375 0x6a06e0 match_word ../../gcc/fortran/parse.c:65 0x6a06e0 decode_statement ../../gcc/fortran/parse.c:361 0x6a21da next_free ../../gcc/fortran/parse.c:1279 0x6a21da next_statement ../../gcc/fortran/parse.c:1511 0x6a382b parse_spec ../../gcc/fortran/parse.c:3922 0x6a65fc parse_progunit ../../gcc/fortran/parse.c:5851 0x6a7cd9 gfc_parse_file() ../../gcc/fortran/parse.c:6392 0x6f295f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:210