2 ! Checks the fix for a regression PR32526, which was caused by
3 ! the patch for PR31494. The problem here was that the symbol
4 ! 'new' was determined to be ambiguous.
6 ! Contributed by Michael Richmond <michael.a.richmond@nasa.gov>
10 private
:: init_Personnel
12 module procedure init_Personnel
15 subroutine init_Personnel(this
)
16 integer, intent (in
) :: this
17 print *, "init personnel", this
18 end subroutine init_Personnel
24 private
:: init_Student
27 integer :: personnel
= 1
30 module procedure init_Student
33 subroutine init_Student(this
)
34 type (Student
), intent (in
) :: this
35 call new(this
%personnel
)
36 end subroutine init_Student
42 private
:: init_Teacher
45 integer :: personnel
= 2
48 module procedure init_Teacher
51 subroutine init_Teacher(this
)
52 type (Teacher
), intent (in
) :: this
53 call new(this
%personnel
)
54 end subroutine init_Teacher