]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix simplification of array-valued parameter expressions
authorHarald Anlauf <anlauf@gmx.de>
Fri, 5 Nov 2021 22:48:20 +0000 (23:48 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 13 Nov 2021 19:59:51 +0000 (20:59 +0100)
commit4b99f0c90f272c5cd94af20f15b95ba702fa0aa6
tree7a68cef27c9ac75bd2ce8c9d00956bf73dfd8e74
parentcb85933717e52f1cd91786e6bb595494629ca5c9
Fortran: fix simplification of array-valued parameter expressions

gcc/fortran/ChangeLog:

PR fortran/102817
* expr.c (simplify_parameter_variable): Copy shape of referenced
subobject when simplifying.

gcc/testsuite/ChangeLog:

PR fortran/102817
* gfortran.dg/pr102817.f90: New test.

(cherry picked from commit bcf3728abe8488882922005166d3065fc5fdfea1)
gcc/fortran/expr.c
gcc/testsuite/gfortran.dg/pr102817.f90 [new file with mode: 0644]