[Bug fortran/92885] [8/9/10 Regression] ICE (segfault) with allocatable coarrays

2020-03-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92885

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|8.4 |8.5

--- Comment #3 from Jakub Jelinek  ---
GCC 8.4.0 has been released, adjusting target milestone.

[Bug fortran/92885] [8/9/10 Regression] ICE (segfault) with allocatable coarrays

2020-01-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92885

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug fortran/92885] [8/9/10 Regression] ICE (segfault) with allocatable coarrays

2019-12-16 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92885

G. Steinmetz  changed:

   What|Removed |Added

 CC||gs...@t-online.de

--- Comment #2 from G. Steinmetz  ---

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

[Bug fortran/92885] [8/9/10 Regression] ICE (segfault) with allocatable coarrays

2019-12-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92885

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2019-12-10
 CC||marxin at gcc dot gnu.org,
   ||vehre at gcc dot gnu.org
  Known to work||6.5.0
   Target Milestone|--- |8.4
Summary|ICE (segfault) with |[8/9/10 Regression] ICE
   |allocatable coarrays|(segfault) with allocatable
   ||coarrays
 Ever confirmed|0   |1
  Known to fail||10.0, 7.4.0, 8.3.0, 9.2.0

--- Comment #1 from Martin Liška  ---
Confirmed, started with r243021.