https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78780
Bug ID: 78780
Summary: ICE in conv_caf_send, at
fortran/trans-intrinsic.c:1936
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Since recently, with a case from testsuite/gfortran.dg :
$ gfortran-7-20161211 -fcoarray=lib coarray_allocate_1.f90
coarray_allocate_1.f90:64:0:
D%endsi(nxims) = D%n
internal compiler error: in conv_caf_send, at fortran/trans-intrinsic.c:1936
0x78ba7a conv_caf_send
../../gcc/fortran/trans-intrinsic.c:1936
0x793493 gfc_conv_intrinsic_subroutine(gfc_code*)
../../gcc/fortran/trans-intrinsic.c:10586
0x77a5f4 gfc_trans_assignment_1
../../gcc/fortran/trans-expr.c:9972
0x72f817 trans_code
../../gcc/fortran/trans.c:1818
0x760568 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6307
0x6e8490 translate_all_program_units
../../gcc/fortran/parse.c:6008
0x6e8490 gfc_parse_file()
../../gcc/fortran/parse.c:6208
0x72c312 gfc_be_parse_file
../../gcc/fortran/f95-lang.c:202
Reduced :
program Jac
type Domain
integer :: n=64
integer,allocatable :: endsi(:)
end type
type(Domain),allocatable :: D[:,:,:]
allocate(D[2,2,*])
allocate(D%endsi(2))
D%endsi(2) = D%n
end program