Hi Paul,
thanks for review. Committed as gcc-16-2372-g3a7fcf4f54e.
The issue is also present on gcc-15 and 14. I would backport this to gcc-15 in a
week, if no one objects!
Thanks again,
Andre
On Fri, 18 Jul 2025 16:35:51 +0100
Paul Richard Thomas <[email protected]> wrote:
> Hi Andre,
>
> After a false start, the patch was applied to mainline, did what it was
> supposed to do and regtests fine.
>
> Ok for mainline.
>
> Thanks
>
> Paul
>
>
> On Fri, 18 Jul 2025 at 13:42, Andre Vehreschild <[email protected]> wrote:
>
> > Hi all, hi Harald,
> >
> > attached patch fixes a runtime out-of-bounds error when an iterator of an
> > implied do-loop was not substituted as expected. The resulting code would
> > still
> > use the uninitialized iterator variable which then lead to out-of-bounds
> > accesses.
> >
> > Harald, I did not look at the patch you put into the PR and reported to
> > have
> > got stuck on just to not suffer from the same fate. Unfortunately I did
> > just
> > the same with the same insufficient result. It took me a lot of head
> > scratching
> > to come up with the this solution. Please have an in-depth look into it.
> >
> > Regtests fine on x86_64-pc-linux-gnu / F41. Ok for mainline?
> >
> > Regards,
> > Andre
> > --
> > Andre Vehreschild * Email: vehre ad gmx dot de
> >
--
Andre Vehreschild * Email: vehre ad gmx dot de