https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104211
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:3982a308e669cc5537322c83e8c2d49b0144297e commit r11-9579-g3982a308e669cc5537322c83e8c2d49b0144297e Author: Harald Anlauf <anl...@gmx.de> Date: Thu Feb 10 21:22:48 2022 +0100 Fortran: improve error recovery on bad array section gcc/fortran/ChangeLog: PR fortran/104211 * expr.c (find_array_section): Replace assertion by error recovery when encountering bad array constructor. gcc/testsuite/ChangeLog: PR fortran/104211 * gfortran.dg/pr104211.f90: New test. (cherry picked from commit 19b517dff37b8e25f6babf8883483be73cad8fb3)