Fortran allocatable array

A conforming program shall not have the mismatch in shape in intrinsic assignment, the likes of which are shown in the original post.

The onus to conform is placed on the program writer.