]> gcc.gnu.org Git - gcc.git/commit
Fortran: error recovery on rank mismatch of array and its initializer
authorHarald Anlauf <anlauf@gmx.de>
Sat, 6 Nov 2021 18:42:01 +0000 (19:42 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 7 Nov 2021 20:40:20 +0000 (21:40 +0100)
commitdb1da3d37e33b0adcd7fed68cfdb96e8ee265ccf
tree8037feb9fb46d5f4900782f7eeb6f7f644d0f8a1
parent907fd5049735ed1bd17e221db5a812dedee5dfc8
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)
gcc/fortran/decl.c
gcc/testsuite/gfortran.dg/pr102715.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr68019.f90
This page took 0.090984 seconds and 5 git commands to generate.