c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / associate_44.f90
blobde42d8aedd8a1b7405b1ba8324cbc9e48c6e64d9
1 ! { dg-do compile }
3 ! Test the fix for PR56386
5 ! Contributed by Vladimir Fuka <vladimir.fuka@gmail.com>
7 subroutine CustomSolidBodies
8 implicit none
10 type inner
11 real :: elev
12 end type
14 type :: outer
15 type(inner),dimension(0) :: PrPoints
16 end type
18 type(outer) :: SB
20 associate (Prter=>SB%PrPoints)
21 PrTer%elev=0 ! ICE here
22 end associate
23 end subroutine CustomSolidBodies