On 12/17/22 1:21 PM, Harald Anlauf via Fortran wrote:
Dear all,

the previous fix for pr103505 introduced a regression that could lead
to wrong array bounds when LBOUND/UBOUND were used in the array spec
of a declaration.  The reason was that we tried to simplify too early
the array element spec, which appears to have interfered with the
subtle semantics of the bound intrinsics.

The solution is to undo the fix for pr103505.  It turns out that
there are other code changes in place that were put in place to
fix related ICEs, and which handle that one, too, and only lead
to a change of the emitted error diagnostics.

Regtested on x86_64-pc-linux-gnu.  OK for mainline?


Yes, OK for mainline.

My thought is that this is the kind of bug that can go unseen with incorrect array bounds so is a good candidate to backport. At least 12, 10 and 11 if you have time and it is applicable.

As this is a 10/11/12/13 regression, I would like to backport
as seems fit.

Thanks,
Harald


Reply via email to