https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44744
--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> --- (In reply to Tobias Burnus from comment #4) > Another variant from lsdalton – or rather the BTW: I have not verified that the cause is the same (temporary variable), but it seems to be likely. When replacing the 'A(i,:,:)' on the LHS with 'B(:,:)', gfortran does diagnose the too large RHS.