https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82314
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:3a70195d7da49fe793ce3eb0e839b9ceea96c97a commit r9-9749-g3a70195d7da49fe793ce3eb0e839b9ceea96c97a Author: Harald Anlauf <anl...@gmx.de> Date: Mon Sep 13 19:28:10 2021 +0200 Fortran - ensure simplification of bounds of array-valued named constants gcc/fortran/ChangeLog: PR fortran/82314 * decl.c (add_init_expr_to_sym): For proper initialization of array-valued named constants the array bounds need to be simplified before adding the initializer. gcc/testsuite/ChangeLog: PR fortran/82314 * gfortran.dg/pr82314.f90: New test. (cherry picked from commit 104c05c5284b7822d770ee51a7d91946c7e56d50)