https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107559
--- Comment #2 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:e505f7493bed1395d121d2f53137ec11706fa42e commit r13-3865-ge505f7493bed1395d121d2f53137ec11706fa42e Author: Harald Anlauf <anl...@gmx.de> Date: Wed Nov 9 21:05:28 2022 +0100 Fortran: avoid NULL pointer dereference on bad EQUIVALENCEs [PR107559] gcc/fortran/ChangeLog: PR fortran/107559 * resolve.cc (resolve_equivalence): Avoid NULL pointer dereference while emitting diagnostics for bad EQUIVALENCEs. gcc/testsuite/ChangeLog: PR fortran/107559 * gfortran.dg/pr107559.f90: New test.