view gcc/testsuite/gfortran.dg/associate_39.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! { dg-do compile }
!
! PR 86935: Bad locus in ASSOCIATE statement
!
! Contributed by Janus Weil <janus@gcc.gnu.org>

implicit none

type :: t
  real :: r = 0.5
  integer :: i = 3
end type

type(t) :: x

associate (r => x%r, &
           i => x%ii)   ! { dg-error "Invalid association target" }

end