[PATCH, fortran] Improve expansion of constant array expressions within constructors

Harald Anlauf anlauf@gmx.de
Sat Nov 27 20:56:27 GMT 2021


Dear all,

while analyzing several issues involving constructors and constant
array expressions, such as in PR102717 and PR102787, a common problem
showed up: we did not always properly expand parameter arrays,
array sections, or sections with vector subscripts.

Besides several ICEs as in these PRs, the incomplete expansion
led to an unnecessary creation of array temporaries.  This is
improved by the attached patch.

Regtested on x86_64-pc-linux-gnu.

OK for mainline?

Thanks,
Harald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fortran-improve-expansion-of-constant-array-expressi.patch
Type: text/x-patch
Size: 2338 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211127/2f467533/attachment.bin>


More information about the Gcc-patches mailing list