PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_assignment_8.f90
blob1572777d86e27c96a053198425ccc5be7ea508ae
1 ! { dg-do compile }
3 ! PR 60853: [OOP] Failure to disambiguate generic with unlimited polymorphic
5 ! Contributed by tlcclt <Thomas.L.Clune@nasa.gov>
7 module foo_mod
8 implicit none
10 type Vector
11 contains
12 procedure :: copyFromScalar
13 procedure :: copyFromArray
14 generic :: assignment(=) => copyFromScalar, copyFromArray
15 end type
17 contains
19 subroutine copyFromScalar(this, scalar)
20 class (Vector), intent(inout) :: this
21 type (Vector), intent(in) :: scalar
22 end subroutine
24 subroutine copyFromArray(this, array)
25 class (Vector), intent(inout) :: this
26 class (*), intent(in) :: array(:)
27 end subroutine
29 end module