https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99545
--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:b4f86a21263b8e731de68a78862e5c480ef3d160 commit r9-9284-gb4f86a21263b8e731de68a78862e5c480ef3d160 Author: Paul Thomas <pa...@gcc.gnu.org> Date: Mon Mar 15 09:32:52 2021 +0000 Fortran: Fix problem with allocate initialization [PR99545]. 2021-03-15 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran/ChangeLog PR fortran/99545 * trans-stmt.c (gfc_trans_allocate): Mark the initialization assignment by setting init_flag. gcc/testsuite/ChangeLog PR fortran/99545 * gfortran.dg/pr99545.f90: New test. (cherry picked from commit 21ced2776a117924e52f6aab8b41afb613fef0e7)