https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106857
--- 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:2b75d5f533b9d6b39f4055949aff64ed0d22dd24 commit r13-2691-g2b75d5f533b9d6b39f4055949aff64ed0d22dd24 Author: Harald Anlauf <anl...@gmx.de> Date: Thu Sep 15 22:39:24 2022 +0200 Fortran: catch NULL pointer dereferences while simplifying PACK [PR106857] gcc/fortran/ChangeLog: PR fortran/106857 * simplify.cc (gfc_simplify_pack): Check for NULL pointer dereferences while walking through constructors (error recovery). gcc/testsuite/ChangeLog: PR fortran/106857 * gfortran.dg/pr106857.f90: New test.