https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94978

--- Comment #13 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Christopher Albert from comment #12)
> Created attachment 64061 [details]
> [PATCH] fortran: Avoid bogus do-subscript warnings in skipped inner loops
> [PR94978]
> 
> Patch attached.
> 
> The bogus warning comes from treating an outer-loop bound substitution as
> executed even when a nested inner loop becomes zero-trip for that substituted
> bound.  This patch checks the nested inner loops first and suppresses the
> warning when the guarded array reference may be unreachable.

This one looks OK so far. I did regression test this ok. I will prepare the
commit and post to the list for approval.

Reply via email to