https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107899
--- Comment #3 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:9123863828b2f86e7a6aafba38738e7204ed19ca commit r13-4484-g9123863828b2f86e7a6aafba38738e7204ed19ca Author: Harald Anlauf <anl...@gmx.de> Date: Sat Dec 3 19:21:07 2022 +0100 Fortran: error recovery handling invalid CLASS variable [PR107899] gcc/fortran/ChangeLog: PR fortran/107899 * resolve.cc (resolve_deallocate_expr): Avoid NULL pointer dereference on invalid CLASS variable. gcc/testsuite/ChangeLog: PR fortran/107899 * gfortran.dg/pr107899.f90: New test.