Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Bad results from assignment to allocatable array (with realloc_lhs)

$
0
0

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.

AttachmentSize
Downloadintel-bug-20150601.f901.44 KB

Viewing all articles
Browse latest Browse all 3270

Trending Articles