One more TARGET quiz



My head started spinning again this morning ...

Is it possible to check if two TARGET dummies are associated with the same variable like this? Assume that the actual arguments are TARGETs.

SUBROUTINE FOO(I1,I2)
INTEGER, TARGET :: I1
INTEGER, TARGET :: I2

INTEGER, POINTER :: IP

IP => I1
IF(ASSOCIATED(IP,I2)) WRITE(*,*) 'Yes!'

END SUBROUTINE FOO
.