I've attached a small example that clearly demonstrates that bad results are obtained from assignment to an (unallocated) allocatable array. I am using the required realloc_lhs switch. The problem exists with both Intel 14.0.3 and 15.0.2. A key ingredient to the problem seems to be that the rhs of the assignment is an elemental type bound function referenced through a derived type array.
↧