https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99545
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:62bba614ffadb593baaaf13c881874ee96c7b7ce commit r10-9442-g62bba614ffadb593baaaf13c881874ee96c7b7ce 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)