https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106731
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Jerry DeLisle <jvdeli...@gcc.gnu.org>: https://gcc.gnu.org/g:6d307fda2b9ba71fe18f1449f7444bed7ff05193 commit r12-9055-g6d307fda2b9ba71fe18f1449f7444bed7ff05193 Author: Jerry DeLisle <jvdeli...@gcc.gnu.org> Date: Sat Jan 21 14:58:05 2023 -0800 Backported from master: PR fortran/106731 gcc/fortran/ChangeLog: * trans-array.cc (gfc_trans_auto_array_allocation): Remove gcc_assert (!TREE_STATIC()). gcc/testsuite/ChangeLog: * gfortran.dg/pr106731.f90: New test.