https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84006
Bug ID: 84006 Summary: ICE in storage_size() with CLASS entity Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: kargl at gcc dot gnu.org Target Milestone: --- program p type t integer i end type integer rslt class(t), allocatable :: t_alloc(:) rslt = storage_size(t_alloc) end program p internal compiler error: Segmentation fault 0xcef4cf crash_signal ../../gcc/gcc/toplev.c:325 0x86b58e gfc_conv_intrinsic_storage_size ../../gcc/gcc/fortran/trans-intrinsic.c:7011 0x8733f8 gfc_conv_intrinsic_function(gfc_se*, gfc_expr*) ../../gcc/gcc/fortran/trans-intrinsic.c:9218 0x84f25a gfc_conv_expr(gfc_se*, gfc_expr*) ../../gcc/gcc/fortran/trans-expr.c:7863 0x857c46 gfc_trans_assignment_1 ../../gcc/gcc/fortran/trans-expr.c:10039 0x815517 trans_code ../../gcc/gcc/fortran/trans.c:1828 0x840efd gfc_generate_function_code(gfc_namespace*) ../../gcc/gcc/fortran/trans-decl.c:6458 0x7cbb26 translate_all_program_units ../../gcc/gcc/fortran/parse.c:6103 0x7cbb26 gfc_parse_file() ../../gcc/gcc/fortran/parse.c:6306 0x811abf gfc_be_parse_file ../../gcc/gcc/fortran/f95-lang.c:204 Please submit a full bug report,