https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103411
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:263826d6f52d1cc3611554ba0e131347e874aebf commit r10-10332-g263826d6f52d1cc3611554ba0e131347e874aebf Author: Harald Anlauf <anl...@gmx.de> Date: Fri Nov 26 21:00:35 2021 +0100 Fortran: improve check of arguments to the RESHAPE intrinsic gcc/fortran/ChangeLog: PR fortran/103411 * check.c (gfc_check_reshape): Improve check of size of source array for the RESHAPE intrinsic against the given shape when pad is not given, and shape is a parameter. Try other simplifications of shape. gcc/testsuite/ChangeLog: PR fortran/103411 * gfortran.dg/pr68153.f90: Adjust test to improved check. * gfortran.dg/reshape_7.f90: Likewise. * gfortran.dg/reshape_9.f90: New test. (cherry picked from commit 4d540c7a4a7fb87b04d06e1ee7f9b004116279a4)