PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_comp_25.f90
blob68355262979d923c2c3fc02c5e4a3f0e05356ecc
1 ! { dg-do compile }
3 ! PR 46060: [F03] procedure pointer component referenced without argument list
5 ! Contributed by Stephen J. Bespalko <sjbespa@comcast.net>
7 implicit none
9 abstract interface
10 function name_func (ivar) result (res)
11 integer, intent(in) :: ivar
12 character(len=8) :: res
13 end function name_func
14 end interface
16 type var_type
17 procedure(name_func), nopass, pointer :: name
18 end type var_type
20 type(var_type) :: vars
21 character(len=8) name
23 name = vars%name ! { dg-error "requires an argument list" }
25 end