This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/43945] [OOP] Derived type with GENERIC: resolved to the wrong specific TBP
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2010 03:02:45 -0000
- Subject: [Bug fortran/43945] [OOP] Derived type with GENERIC: resolved to the wrong specific TBP
- References: <bug-43945-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from janus at gcc dot gnu dot org 2010-06-06 03:02 -------
(In reply to comment #11)
> Reduced test case for comment #4:
Even further reduced:
module foo_mod
type foo
contains
procedure :: doit
generic :: do => doit
end type
contains
subroutine doit(a)
class(foo) :: a
end subroutine
end module
program testd15
contains
subroutine dodo(x)
use foo_mod
class(foo) :: x
call x%do()
end subroutine
end
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43945