https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103694
--- Comment #12 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:c59d1e73a617277fea13e785bb0e3f8c1df6ffc4 commit r10-11010-gc59d1e73a617277fea13e785bb0e3f8c1df6ffc4 Author: Harald Anlauf <anl...@gmx.de> Date: Tue Aug 23 22:16:14 2022 +0200 Fortran: improve error recovery while simplifying size of bad array [PR103694] gcc/fortran/ChangeLog: PR fortran/103694 * simplify.c (simplify_size): The size expression of an array cannot be simplified if an error occurs while resolving the array spec. gcc/testsuite/ChangeLog: PR fortran/103694 * gfortran.dg/pr103694.f90: New test. (cherry picked from commit 55d8c5409325001c89c35c3d04d425dec9127146)