Thanks a lot for your reply, Mike.
On Mon, 13 Feb 2006, [log in to unmask] wrote:
> > 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."
Bummer! In particular since one doesn't get any notice about a
missing target attribute, but just a wrong result.
Roland
+----------------------------------------------------------------------+
| Roland Schilling Home-Office: +49(89)32929-670 |
| Max-Planck-Institut für Gravitationsphysik |
| -- Albert-Einstein-Institut -- |
| D-85748 Garching E-mail: [log in to unmask] |
| Germany http://www.geo600.uni-hannover.de |
+----------------------------------------------------------------------+
|