This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/86006] compile time error generic type bound procedure


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]