[PATCH, part 2] PR 102458 - issues with simplification of SIZE intrinsic applied to automatic arrays

Harald Anlauf anlauf@gmx.de
Wed Sep 29 19:20:35 GMT 2021


Dear Fortranners,

I think I have solved the remaining issue in PR 102458 that prevented the
simplification of an expression involving a static initialization and the
evaluation of the SIZE of an automatic array which has provable constant
size.  My previous related query to the ML has thus become obsolete.

My solution is to attempt the resolution of the array specification
within simplify_size so that the simplification actually works.

Regtested on x86_64-pc-linux-gnu.  OK for mainline and same branches
as the patch for part1?

Thanks,
Harald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr104458-part2.diff
Type: text/x-patch
Size: 2014 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20210929/20c6bc05/attachment.bin>


More information about the Fortran mailing list