3 ! PR 44616: [OOP] ICE if CLASS(foo) is used before its definition
5 ! Contributed by bd satish <bdsatish@gmail.com>
11 character(len=20) :: factory_type
12 class(Connection), pointer :: connection_type
14 end type First_Factory
16 type, abstract :: Connection
18 procedure(generic_desc), deferred :: description
22 subroutine generic_desc(self)
23 import ! Required, cf. PR 44614
24 class(Connection) :: self
25 end subroutine generic_desc
27 end module factory_pattern
29 ! { dg-final { cleanup-modules "factory_pattern" } }