I came across a problem with the following statement ( simplified for clarity) in a F95 code:
A%vector(:) = A%vector(:) * value
The array component is a vector (1D array) of size 3,200,000 elements of double complex values (~50MB of data). Using the array assignment above to scale the vector values....results in a segmentation fault....whereas when I re-coded the assigment as an explicit do loop i.e.
A%vector(i) = A%vector(i) * value