This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/86006] compile time error generic type bound procedure
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 01 Jun 2018 11:55:49 +0000
- Subject: [Bug fortran/86006] compile time error generic type bound procedure
- Auto-submitted: auto-generated
- References: <bug-86006-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86006
--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
BTW do you expect the ambiguity to be resolved in the following test?
Module Mod_LL_DT
Implicit None
Private
Type, Public :: LLCont_DT
contains
Generic :: GetElement => GetElementByType,GetElementByPosition
Procedure, PAss :: GetElementByType => SubGetElementByType
Procedure, PAss :: GetElementByPosition => SubGetElementByPosition
End type LLCont_DT
contains
Subroutine SubGetElementByType(this,TSOut)
Implicit None
Class(LLCont_DT), Intent(InOut) :: this
! Class(LLCont_DT), Intent(Out), Pointer :: TSOut
integer(8), Pointer :: TSOut
End Subroutine SubGetElementByType
Subroutine SubGetElementByPosition(this,ISPos)
Implicit None
Class(LLCont_DT), Intent(InOut) :: this
Integer(8) :: ISPos
End Subroutine SubGetElementByPosition
End Module Mod_LL_DT