Re: Accessibility-check for GENERIC bindings' targets
- From: Daniel Kraft <d@xxxxxxxx>
- Date: Sun, 31 Aug 2008 10:08:27 +0200
Daniel Kraft wrote:
MODULE m1
TYPE t1
CONTAINS
PROCEDURE, NOPASS, PRIVATE :: proc
END TYPE t1
CONTAINS
SUBROUTINE proc ()
END SUBROUTINE proc
END MODULE m1
MODULE m2
USE m1 here of course, sorry for the mistake.
TYPE, EXTENDS(t1) :: t2
CONTAINS
GENERIC :: gen => proc
END TYPE t2
END MODULE m2
Is the GENERIC binding invalid as it targets a PRIVATE specific binding? Or is this allowed in this case? I couldn't find anything about this in the draft F2003 standard's section about type-bound procedures.
If the code was valid, this would mean that any PRIVATE type-bound procedure can be made accessible by extending the type and defining there a PUBLIC GENERIC binding targetting it, wouldn't it?
Thanks,
Daniel
--
Done: Arc-Bar-Cav-Sam-Val-Wiz, Dwa-Elf-Gno-Hum-Orc, Law-Neu-Cha, Fem-Mal
To go: Hea-Kni-Mon-Pri-Ran-Rog-Tou
.
- References:
- Accessibility-check for GENERIC bindings' targets
- From: Daniel Kraft
- Accessibility-check for GENERIC bindings' targets
- Prev by Date: Accessibility-check for GENERIC bindings' targets
- Next by Date: Re: Accessibility-check for GENERIC bindings' targets
- Previous by thread: Accessibility-check for GENERIC bindings' targets
- Next by thread: Re: Accessibility-check for GENERIC bindings' targets
- Index(es):