3 ! PR 48095: [OOP] Invalid assignment to procedure pointer component not rejected
5 ! Contributed by Arjen Markus <arjen.markus895@gmail.com>
12 procedure(get_area
), pointer :: get_special_area
16 real function get_area( this
)
18 class(rectangle
), intent(in
) :: this
24 real function get_my_area( this
)
25 type(rectangle
), intent(in
) :: this
27 end function get_my_area
33 type(rectangle
) :: rect
34 rect
%get_special_area
=> get_my_area
! { dg-error "Interface mismatch in procedure pointer assignment" }