[Bug fortran/92885] New: ICE (segfault) with allocatable coarrays
davidgkinniburgh at yahoo dot co.uk
gcc-bugzilla@gcc.gnu.org
Tue Dec 10 11:30:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92885
Bug ID: 92885
Summary: ICE (segfault) with allocatable coarrays
Product: gcc
Version: 9.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: davidgkinniburgh at yahoo dot co.uk
Target Milestone: ---
Please can someone check this out? Compiles with ifort 19.0.5.281. Thanks.
program caf_alloc_gfortran_ice
! coarray program
! gfortran -c -Wall -fcoarray=single -O0 caf_alloc_gfortran_ice.f90
! Thread model: win32
! gcc version 9.2.0 (GCC) on Windows
IMPLICIT none
type string
character(:), allocatable :: s
end type string
type result
type(string), allocatable :: sp(:)
end type result
! coarray
type(result), allocatable :: results(:)[:]
! now allocate
allocate(results(2)[*])
end program caf_alloc_gfortran_ice
gives
21 | allocate(results(2)[*])
|
internal compiler error: Segmentation fault
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
More information about the Gcc-bugs
mailing list