[Bug fortran/54594] [OOP] Type-bound ASSIGNMENTs (elemental + array version) rejected as ambiguous

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Sep 15 18:46:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54594

--- Comment #2 from janus at gcc dot gnu.org 2012-09-15 18:46:06 UTC ---
Note: The same error appears also for a non-typebound generic interface:


module a_mod

  type :: a
  end type

  interface ass
    procedure :: a_ass, a_ass_sv
  end interface  

contains

  impure elemental subroutine a_ass (out, in)
    class(a), intent(out) :: out
    type(a), intent(in)   :: in
  end subroutine

  subroutine a_ass_sv (out, in)
    class(a), intent(out) :: out(:)
    type(a), intent(in)   :: in
  end subroutine

end module



More information about the Gcc-bugs mailing list