Debian Codegraph @

gcc/testsuite/gfortran.dg/coarray/pr93671.f90

raw
1 ! { dg-do run }
2
3 ! PR/fortran 93671 - ICE on intrinsic assignment to allocatable derived-type
4 ! component of coarray
5
6 type flux_planes
7 integer, allocatable :: normals
8 end type
9
10 type package
11 type(flux_planes) surface_fluxes(1)
12 end type
13
14 type(package) mail[*], halo_data
15
16 halo_data%surface_fluxes(1)%normals = 1
17 mail = halo_data
18
19 if (any(size(mail%surface_fluxes) /= [1]) .OR. &
20 mail%surface_fluxes(1)%normals /= 1) then
21 stop 1
22 end if
23 end
24