https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83076
Bug ID: 83076
Summary: [8 Regression] ICE in
gfc_deallocate_scalar_with_status, at
fortran/trans.c:1598
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
With testcase from pr78781 comment 2 :
$ gfortran-8-20171029 -c z2.f90 -fcoarray=lib
$
$ gfortran-8-20171105 -c z2.f90 -fcoarray=lib
z2.f90:8:0:
if ( associated(x%z) ) deallocate(x%z)
internal compiler error: in gfc_deallocate_scalar_with_status, at
fortran/trans.c:1598
0x733640 gfc_deallocate_scalar_with_status(tree_node*, tree_node*, tree_node*,
bool, gfc_expr*, gfc_typespec, bool)
../../gcc/fortran/trans.c:1598
0x79fe76 gfc_trans_deallocate(gfc_code*)
../../gcc/fortran/trans-stmt.c:6747
0x72ff57 trans_code
../../gcc/fortran/trans.c:1984
0x793ff3 gfc_trans_if_1
../../gcc/fortran/trans-stmt.c:1325
0x79ad2a gfc_trans_if(gfc_code*)
../../gcc/fortran/trans-stmt.c:1356
0x730047 trans_code
../../gcc/fortran/trans.c:1916
0x756bfc gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6421
0x733ac1 gfc_generate_module_code(gfc_namespace*)
../../gcc/fortran/trans.c:2206
0x6e8abd translate_all_program_units
../../gcc/fortran/parse.c:6078
0x6e8abd gfc_parse_file()
../../gcc/fortran/parse.c:6294
0x72d3bf gfc_be_parse_file
../../gcc/fortran/f95-lang.c:204