For the code
module pow_mod
implicit none
integer, parameter :: dp = kind(1.0d0)
interface operator(**)
module procedure mypow
end interface
contains
!
function mypow(x,y) result(x_to_y)
real(kind=dp), intent(in) :: x,y
real(kind=dp) :: x_to_y
x_to_y = exp(y*log(x))
end function mypow
end module pow_mod
gfortran says
pow_fast.f90:5:25:
5 | module procedure mypow
| 1
Error: Operator interface at (1) conflicts with intrinsic interface
and Intel Fortran says something similar. Is it possible in Fortran to overload intrinsic operators on intrinsic types?