https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104210
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:5de47ab9032b54a3ada986366168121f23a51c55 commit r11-9792-g5de47ab9032b54a3ada986366168121f23a51c55 Author: Harald Anlauf <anl...@gmx.de> Date: Tue Mar 29 23:33:23 2022 +0200 Fortran: improve error recovery for invalid coarray function declarations gcc/fortran/ChangeLog: PR fortran/104210 * arith.c (eval_intrinsic): Avoid NULL pointer dereference. (gfc_zero_size_array): Likewise. gcc/testsuite/ChangeLog: PR fortran/104210 * gfortran.dg/pr104210.f90: New test. (cherry picked from commit 892c7f03ae63121766a8be48f7e3b672547fd627)