[Patch] Fortran: Fix ubound simplifcation [PR99027]
Tobias Burnus
burnus@net-b.de
Sat Feb 13 20:49:29 GMT 2021
The problem which accessing dim=<n> for an expression is that
when the argument is an array, dim=<n> and expr->rank are relative
to the resulting array – but the array-ref also contains the
DIMEN_ELEMENT which does not count for dim=/rank.
OK for the trunk? (Reported against GCC 11, but I wonder whether
we should still apply it to GCC 10.)
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ubound.diff
Type: text/x-patch
Size: 2298 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210213/fcded9ef/attachment.bin>
More information about the Gcc-patches
mailing list