view gcc/testsuite/gfortran.dg/proc_ptr_comp_40.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
!
! PR 64173: [F03] ICE involving procedure pointer component
!
! Contributed by Rich Townsend <townsend@astro.wisc.edu>

  implicit none

  type :: r_magnus_ivp_t
     integer, allocatable :: jc
     procedure(abscissa_), nopass, pointer :: abscissa_p
  end type

  abstract interface
     function abscissa_ () result (x)
       real, allocatable :: x(:)
     end function
  end interface

contains

 function doinit () result (iv)
   type(r_magnus_ivp_t) :: iv
 end function

end