I have the following assignment in my code:
INTEGER,DIMENSION(:,:),ALLOCATABLE::factors
:
factors = factors(:,f)
Is this not allowed with automatic de- and reallocation (f2003) on the 2013 compiler?
I get the following error: The shapes of the array expressions do not conform. [FACTORS]
And btw, since in my case f<SIZE(factors,2) will the compiler do this in-place, ie. not by copying the section of factors to a temporary array?
What is the best way if I want to increase the bounds? Is that possible without making an explicit copy to a temporary array in my code?



