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

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

! { dg-do compile }
! PR fortran/90986
module mymod
  type :: mytyp
    integer :: i
  end type mytyp
contains
  subroutine mysub
    implicit none
    type(mytyp) :: a
    integer :: equivalencei,equivalencej
    equivalencei = a%i
    equivalencej = a%j  ! { dg-error "is not a member of the" }
  end subroutine mysub
end module mymod