(j3.2006) Generic interface question
malcolm at nag-j.co.jp
malcolm
Sat Mar 5 17:30:34 EST 2011
> The following generic interface appears to be standard conforming:
No it doesn't.
> interface Generic
> subroutine S ( A ) bind(C,'x')
> real :: A
> end subroutine S
> subroutine T ( B, C ) bind(C,'x')
> integer :: A, B
> end subroutine T
> end interface
>
> The rules in 12.4.3.4.5
have nothing to do with it.
You have two entities with the same global identifier (the binding label), breaking the fundamental rule of global identifiers:
"The global identifier of an entity shall not be the same as the
global identifier of any other entity."
Cheers,
--
.......................Malcolm.
More information about the J3
mailing list