https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102715
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Harald Anlauf <[email protected]>: https://gcc.gnu.org/g:db1da3d37e33b0adcd7fed68cfdb96e8ee265ccf commit r11-9215-gdb1da3d37e33b0adcd7fed68cfdb96e8ee265ccf Author: Harald Anlauf <[email protected]> Date: Sat Nov 6 19:42:01 2021 +0100 Fortran: error recovery on rank mismatch of array and its initializer gcc/fortran/ChangeLog: PR fortran/102715 * decl.c (add_init_expr_to_sym): Reject rank mismatch between array and its initializer. gcc/testsuite/ChangeLog: PR fortran/102715 * gfortran.dg/pr68019.f90: Adjust error message. * gfortran.dg/pr102715.f90: New test. (cherry picked from commit df2135e88a8f78c853b35246ad426b01b6d08378)
