URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [host_assoc_function_5.f90] - Rev 700
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }!! PR fortran/38665, in which checking for host association! was wrongly trying to substitute mod_symmon(mult) with! mod_sympoly(mult) in the user operator expression on line! 43.!! Contributed by Thomas Koenig <tkoenig@gcc.gnu.org>!module mod_symmonimplicit nonepublic :: t_symmon, operator(*)privatetype t_symmoninteger :: ierr = 0end type t_symmoninterface operator(*)module procedure multend interfacecontainselemental function mult(m1,m2) result(m)type(t_symmon), intent(in) :: m1, m2type(t_symmon) :: mend function multend module mod_symmonmodule mod_sympolyuse mod_symmonimplicit nonetype t_sympoltype(t_symmon), allocatable :: mons(:)end type t_sympolcontainselemental function mult(p1,p2) result(p)type(t_sympol), intent(in) :: p1,p2type(t_sympol) :: ptype(t_symmon), allocatable :: mons(:)mons(1) = p1%mons(1)*p2%mons(2)end functionend module! { dg-final { cleanup-modules "mod_symmon mod_sympoly" } }
Go to most recent revision | Compare with Previous | Blame | View Log
