[Bug fortran/84870] New: [7/8 Regression] ICE in gfc_trans_structure_assign, at fortran/trans-expr.c:7651
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Wed Mar 14 17:56:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84870
Bug ID: 84870
Summary: [7/8 Regression] ICE in gfc_trans_structure_assign, at
fortran/trans-expr.c:7651
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Changed between 20161127 and 20161204 :
$ cat z1.f90
program p
type t
real, allocatable :: a
end type
type t2
type(t), allocatable :: b
end type
type(t2) :: x, y[*]
x%b = t(1.0)
y = x
y%b%a = 2.0
end
$ gfortran-7-20161127 -c z1.f90 -fcoarray=lib
$
$ gfortran-8-20180311 -c z1.f90 -fcoarray=lib
z1.f90:1:0:
program p
internal compiler error: Segmentation fault
0xb9b07f crash_signal
../../gcc/toplev.c:325
0x7822a0 gfc_trans_structure_assign(tree_node*, gfc_expr*, bool, bool)
../../gcc/fortran/trans-expr.c:7651
0x783fdf gfc_conv_structure(gfc_se*, gfc_expr*, int)
../../gcc/fortran/trans-expr.c:7771
0x77db7c gfc_conv_expr(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.c:7938
0x785872 gfc_trans_assignment_1
../../gcc/fortran/trans-expr.c:10094
0x76646d generate_coarray_sym_init
../../gcc/fortran/trans-decl.c:5368
0x734c7b do_traverse_symtree
../../gcc/fortran/symbol.c:4159
0x765695 generate_coarray_init
../../gcc/fortran/trans-decl.c:5417
0x7718cc gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6435
0x7007c0 translate_all_program_units
../../gcc/fortran/parse.c:6121
0x7007c0 gfc_parse_file()
../../gcc/fortran/parse.c:6324
0x74735f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:204
More information about the Gcc-bugs
mailing list