https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102715
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:5625599e6f23622447418e6cbfcc080ecd0f2c28 commit r10-10269-g5625599e6f23622447418e6cbfcc080ecd0f2c28 Author: Harald Anlauf <anl...@gmx.de> 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)