"188.8.131.52 Argument presence and restrictions on arguments not present
A dummy argument or an entity that is host associated with a dummy argument is not present if the dummy argument
* does not have the ALLOCATABLE or POINTER attribute, and corresponds to an
actual argument that
- has the ALLOCATABLE attribute and is not allocated, or
- has the POINTER attribute and is disassociated."
That probably means:
a) NULL(mold) as actual argument is allowed
b) For scalars, it should just work
c) For arguments with descriptors, one needs to add:
(actual.data == NULL) ? NULL : actual
FIXED on the 4.6 trunk.
I have missed to include the PR when writing, submitting, and committing the patch. It can be found at: