https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105230
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:0b9bdcf6857b48bb7a147a9778963c942ecb2dd9 commit r12-8375-g0b9bdcf6857b48bb7a147a9778963c942ecb2dd9 Author: Harald Anlauf <anl...@gmx.de> Date: Tue May 10 23:41:57 2022 +0200 Fortran: fix error recovery on invalid array section gcc/fortran/ChangeLog: PR fortran/105230 * expr.cc (find_array_section): Correct logic to avoid NULL pointer dereference on invalid array section. gcc/testsuite/ChangeLog: PR fortran/105230 * gfortran.dg/pr105230.f90: New test. Co-authored-by: Steven G. Kargl <ka...@gcc.gnu.org> (cherry picked from commit 0acdbe29f66017fc5cca40dcbd72a0dd41491d07)