https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103411
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:4d540c7a4a7fb87b04d06e1ee7f9b004116279a4 commit r12-5550-g4d540c7a4a7fb87b04d06e1ee7f9b004116279a4 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.