view flang/test/Semantics/resolve51.f90 @ 181:df311c476dd5

CreateIdentifierInfo in ParseCbC (not yet worked)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 31 May 2020 12:30:11 +0900
parents 0572611fdcc8
children 2e18cbf3894f
line wrap: on
line source

! RUN: %S/test_errors.sh %s %t %f18
! Test SELECT TYPE errors: C1157

subroutine s1()
  type :: t
  end type
  procedure(f) :: ff
  !ERROR: Selector is not a named variable: 'associate-name =>' is required
  select type(ff())
    class is(t)
    class default
  end select
contains
  function f()
    class(t), pointer :: f
    f => null()
  end function
end subroutine