https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45521

--- Comment #19 from janus at gcc dot gnu.org ---
There seem to be additional issues with ASSIGNMENT interfaces:


  type :: t
  end type

  interface test           ! accepted
    procedure testAlloc
    procedure testPtr
  end interface

  interface assignment(=)  ! rejected as ambiguous
    procedure testAlloc
    procedure testPtr
  end interface

contains

  subroutine testAlloc(obj, val)
    type(t), allocatable, intent(out) :: obj
    integer, intent(in) :: val
  end subroutine

  subroutine testPtr(obj, val)
    type(t), pointer, intent(out) :: obj
    integer, intent(in) :: val
  end subroutine

end



Error: Ambiguous interfaces in intrinsic assignment operator for ‘testalloc’ at
(1) and ‘testptr’ at (2)

Reply via email to