(j3.2006) MOVE_ALLOC with coarrays: Add STAT= for STAT_STOPPED_IMAGE?
Wed Oct 23 14:10:32 EDT 2013
this email is motivated by a question in comp.lang.fortran by someone
who observed that ALLOCATE/DEALLOCATE statements have a STAT=/ERRMSG=
while MOVE_ALLOC doesn't.
For noncoarrays, I think MOVE_ALLOC can be treated as any user procedure
with intent(out) allocatable arguments, for which also no error
diagnostic exists and where deallocation is unlikely to fail.
However, for coarrays MOVE_ALLOC is also an image control statement ?
and collective deallocation is much more likely to fail (e.g. with
STAT_STOPPED_IMAGE). Thus, one might consider adding "dealloc-opt"-like
optional dummy arguments for error recovery.
More information about the J3