3 ! PR 42677: [4.5 Regression] Bogus Error: Ambiguous interfaces '...' in intrinsic assignment operator
5 ! Contributed by Harald Anlauf <anlauf@gmx.de>
12 !------------------------------------------------------------------------------
13 interface assignment (=)
14 module procedure assign_m
16 !------------------------------------------------------------------------------
18 subroutine assign_m (y, x)
19 type(t_m) ,intent(inout) :: y
20 type(t_m) ,intent(in) :: x
21 end subroutine assign_m
23 !==============================================================================
25 use mod1, only: t_m, assignment(=)
30 !------------------------------------------------------------------------------
31 interface assignment(=)
32 module procedure assign_to_atm
34 !------------------------------------------------------------------------------
36 pure subroutine delete_m (x)
38 type(t_m) ,intent(in) :: x
39 end subroutine delete_m
41 !------------------------------------------------------------------------------
43 subroutine assign_to_atm (atm, r)
44 type(t_atm) ,intent(inout) :: atm
45 integer ,intent(in) :: r
46 end subroutine assign_to_atm
49 ! { dg-final { cleanup-modules "mod1 mod2" } }