http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59398
--- Comment #2 from Sergio Losilla <loximann at gmail dot com> --- There should be no need to deallocate. From the excerpt you copied: "If the variable is an allocated allocatable variable, it is deallocated if expr is an array of different shape". For the second, the obtained shape should *always* be the same. It looks like gfortran will not touch LHS if it is allocated and has the same size as RHS. And that should not be the case. By the way, the Intel compiler is quite crazy. Version 11 something works as expected in a platform I have access to, but 12 and 13 fail one or both assignments!