aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/associate_44.f90
blob: de42d8aedd8a1b7405b1ba8324cbc9e48c6e64d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! { dg-do compile }
!
! Test the fix for PR56386
!
! Contributed by Vladimir Fuka  <vladimir.fuka@gmail.com>
!
subroutine  CustomSolidBodies
   implicit none

    type inner
      real :: elev
    end type

    type :: outer
      type(inner),dimension(0) :: PrPoints
    end type

    type(outer) :: SB

    associate (Prter=>SB%PrPoints)
       PrTer%elev=0                  ! ICE here
    end associate
end subroutine  CustomSolidBodies