view gcc/testsuite/gfortran.dg/associate_44.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! { 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