URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [interface_assignment_5.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }!! PR 42677: [4.5 Regression] Bogus Error: Ambiguous interfaces '...' in intrinsic assignment operator!! Contributed by Harald Anlauf <anlauf@gmx.de>module mod1implicit nonetype t_minteger :: i = 0end type t_m!------------------------------------------------------------------------------interface assignment (=)module procedure assign_mend interface!------------------------------------------------------------------------------containssubroutine assign_m (y, x)type(t_m) ,intent(inout) :: ytype(t_m) ,intent(in) :: xend subroutine assign_mend module mod1!==============================================================================module mod2use mod1, only: t_m, assignment(=)implicit nonetype t_atminteger :: kend type t_atm!------------------------------------------------------------------------------interface assignment(=)module procedure assign_to_atmend interface!------------------------------------------------------------------------------interfacepure subroutine delete_m (x)use mod1type(t_m) ,intent(in) :: xend subroutine delete_mend interface!------------------------------------------------------------------------------containssubroutine assign_to_atm (atm, r)type(t_atm) ,intent(inout) :: atminteger ,intent(in) :: rend subroutine assign_to_atmend module mod2! { dg-final { cleanup-modules "mod1 mod2" } }
