https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108544
--- 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:c8e07c7951421e718bcafbe5924e75c9aa133af9 commit r13-5400-gc8e07c7951421e718bcafbe5924e75c9aa133af9 Author: Harald Anlauf <anl...@gmx.de> Date: Wed Jan 25 22:47:26 2023 +0100 Fortran: fix ICE in check_host_association [PR108544] gcc/fortran/ChangeLog: PR fortran/108544 * resolve.cc (check_host_association): Extend host association check so that it is not restricted to functions. Also prevent NULL pointer dereference. gcc/testsuite/ChangeLog: PR fortran/108544 * gfortran.dg/pr108544.f90: New test. * gfortran.dg/pr96102b.f90: New test.