> I expect that, after calling the subroutine, 'p'
> points to 'v', i.e. that the write statement returns
> 1.2345 1.2345
Your expectation is wrong. In Section 5.7.3 of MR&C we write:
"When a dummy argument has the <target> attribute, but the actual
argument is not a target ..., any pointer associated with the dummy
argument obviously becomes undefined on return."
Hope that helps,
Mike Metcalf
|