Fortran - ensure simplification of bounds of array-valued named constants
authorHarald Anlauf <anlauf@gmx.de>
Mon, 13 Sep 2021 17:28:10 +0000 (19:28 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Mon, 13 Sep 2021 17:28:10 +0000 (19:28 +0200)
commit104c05c5284b7822d770ee51a7d91946c7e56d50
treee060f101cdc32bf5e520de8e5275db9d4236b74c
parent8d93ba93d3b13ac3d3c34404cad87732c809605b
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.
gcc/fortran/decl.c
gcc/testsuite/gfortran.dg/pr82314.f90 [new file with mode: 0644]