This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/54594] [OOP] Type-bound ASSIGNMENTs (elemental + array version) rejected as ambiguous
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 15 Sep 2012 20:05:53 +0000
- Subject: [Bug fortran/54594] [OOP] Type-bound ASSIGNMENTs (elemental + array version) rejected as ambiguous
- Auto-submitted: auto-generated
- References: <bug-54594-4@http.gcc.gnu.org/bugzilla/>
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