Message text written by Fortran 90 List
>My reference says that the
intent(in) applies to all subobjects, but a pointer object
can't have the intent attribute. Is it allowed that the
target of the pointer be modified as long as the pointer
itself is not?<
I don't know what your reference is, but please note that the following
paragraph was added to the end of Section 5.9 of "Fortran 90/95
Explained", as of the 1999 printing (Revised Edition):
"If a dummy argument is of a derived type with pointer components,
its intent attribute refers to the pointer association status of those
components. For example, if the intent is in, no pointer assignment,
allocation, or deallocation is permitted. The intent attribute has no
bearing on the values of the targets of the pointer components."
Does that help?
Regards,
Mike Metcalf
|