[Bug fortran/92885] [8/9/10 Regression] ICE (segfault) with allocatable coarrays
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Mon Dec 16 20:07:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92885
G. Steinmetz <gscfq@t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gscfq@t-online.de
--- Comment #2 from G. Steinmetz <gscfq@t-online.de> ---
Issue is similar to pr85002.
A complete backtrace is valuable and helpful.
Please allow me to adapt the names, they are just sound and smoke anyway :
$ cat z1.f90
program p
type t
character(:), allocatable :: s
end type
type t2
type(t), allocatable :: sp(:)
end type
type(t2), allocatable :: t2s(:)[:]
allocate (t2s(2)[*])
end
$ gfortran-10-20191215 -c z1.f90 -fcoarray=single
z1.f90:9:0:
9 | allocate (t2s(2)[*])
|
internal compiler error: Segmentation fault
0xb8147f crash_signal
../../gcc/toplev.c:328
0x8c43d3 fold_ternary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*, tree_node*)
../../gcc/fold-const.c:11908
0x8c5fb3 fold_build3_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*, tree_node*)
../../gcc/fold-const.c:12943
0x6ea9ed structure_alloc_comps
../../gcc/fortran/trans-array.c:9257
0x6eafbe structure_alloc_comps
../../gcc/fortran/trans-array.c:8692
0x6ec87f structure_alloc_comps
../../gcc/fortran/trans-array.c:9361
0x6eef63 gfc_copy_alloc_comp(gfc_symbol*, tree_node*, tree_node*, int, int)
../../gcc/fortran/trans-array.c:9812
0x705d1b gfc_trans_scalar_assign(gfc_se*, gfc_se*, gfc_typespec, bool, bool,
bool)
../../gcc/fortran/trans-expr.c:9685
0x7170cd gfc_trans_assignment_1
../../gcc/fortran/trans-expr.c:11051
0x74c5b1 gfc_trans_allocate(gfc_code*)
../../gcc/fortran/trans-stmt.c:7033
0x6d6da7 trans_code
../../gcc/fortran/trans.c:2036
0x700124 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6801
0x6891b6 translate_all_program_units
../../gcc/fortran/parse.c:6302
0x6891b6 gfc_parse_file()
../../gcc/fortran/parse.c:6541
0x6d365f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:210
More information about the Gcc-bugs
mailing list