3 ! PR 43696: [OOP] Bogus error: Passed-object dummy argument must not be POINTER
5 ! Contributed by Hans-Werner Boschmann <boschmann@tp1.physik.uni-siegen.de>
8 MODULE error_stack_module
11 type,abstract::serializable_class
13 procedure(ser_DTV_RF),deferred::read_formatted
14 end type serializable_class
17 subroutine ser_DTV_RF(dtv,unit,iotype,v_list,iostat,iomsg)
18 import serializable_class
19 CLASS(serializable_class),INTENT(INOUT) :: dtv
20 INTEGER, INTENT(IN) :: unit
21 CHARACTER (LEN=*), INTENT(IN) :: iotype
22 INTEGER, INTENT(IN) :: v_list(:)
23 INTEGER, INTENT(OUT) :: iostat
24 CHARACTER (LEN=*), INTENT(INOUT) :: iomsg
25 end subroutine ser_DTV_RF
28 type,extends(serializable_class)::error_type
29 class(error_type),pointer::next=>null()
31 procedure::read_formatted=>error_read_formatted
36 recursive subroutine error_read_formatted(dtv,unit,iotype,v_list,iostat,iomsg)
37 CLASS(error_type),INTENT(INOUT) :: dtv
38 INTEGER, INTENT(IN) :: unit
39 CHARACTER (LEN=*), INTENT(IN) :: iotype
40 INTEGER, INTENT(IN) :: v_list(:)
41 INTEGER, INTENT(OUT) :: iostat
42 CHARACTER (LEN=*), INTENT(INOUT) :: iomsg
43 character(8),allocatable::type
44 character(8),allocatable::next
45 call basic_read_string(unit,type)
46 call basic_read_string(unit,next)
49 call dtv%next%read_formatted(unit,iotype,v_list,iostat,iomsg)
51 end subroutine error_read_formatted
53 end MODULE error_stack_module
59 class(not_yet_defined_type_type),pointer::b_component ! { dg-error "is a type that has not been declared" }