[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 20:06:00 GMT 2012


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

--- Comment #3 from janus at gcc dot gnu.org 2012-09-15 20:05:53 UTC ---
(In reply to comment #2)
> Note: The same error appears also for a non-typebound generic interface:

... also if the second argument 'in' is removed from both procedures.

However, the test case is accepted if the CLASS declarations are changed to
TYPE:


module a_mod

  type :: a
  end type

  interface ass
    procedure :: a_ass, a_ass_sv
  end interface  

contains

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

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

end module



More information about the Gcc-bugs mailing list