]> git.ipfire.org Git - thirdparty/gcc.git/commit
fortran: Remove array bound update after constructor expansion
authorMikael Morin <morin-mikael@orange.fr>
Tue, 5 Aug 2025 12:58:02 +0000 (14:58 +0200)
committerMikael Morin <mikael@gcc.gnu.org>
Tue, 5 Aug 2025 20:35:07 +0000 (22:35 +0200)
commit0634bd56978478c567a29841b6f99ac7050764e6
treecb3b37e1fa51010b38fd9c260a66d80a4d80ae01
parent8d2e44fa19959e8452d500f264f4c96e13ec3617
fortran: Remove array bound update after constructor expansion

The array constructor expansion extends the size of the array
dynamically, and sets the upper bound appropriately every time it
does.  There is no need to do it again at the end of expansion.

gcc/fortran/ChangeLog:

* trans-array.cc (trans_array_constructor): Remove the update of
the array descriptor upper bound after array constructor
expansion.
gcc/fortran/trans-array.cc