https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103112
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andre Vehreschild <ve...@gcc.gnu.org>: https://gcc.gnu.org/g:db75a6657e9de6ee7effe46cd2626d9bb946f2e6 commit r15-1369-gdb75a6657e9de6ee7effe46cd2626d9bb946f2e6 Author: Andre Vehreschild <ve...@gcc.gnu.org> Date: Tue Jun 11 15:24:55 2024 +0200 Fix ICE when compiling with -fcoarray=single, when derefing a non-array. PR fortran/96418 PR fortran/103112 gcc/fortran/ChangeLog: * trans.cc (gfc_deallocate_with_status): Check that object to deref is an array, before applying array deref. gcc/testsuite/ChangeLog: * gfortran.dg/coarray_alloc_comp_3.f08: Moved to... * gfortran.dg/coarray/alloc_comp_8.f90: ...here. Should be tested for both -fcoarray=single and lib, resp. * gfortran.dg/coarray_alloc_comp_4.f08: Fix program name.