From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A011E388A403; Mon, 2 Nov 2020 17:03:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A011E388A403 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/97320] False positive "Array reference out of bounds in loop" in a protecting if block Date: Mon, 02 Nov 2020 17:03:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 10.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2020 17:03:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97320 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #3 from kargl at gcc dot gnu.org --- (In reply to Jacques Le Bourlot from comment #2) >=20 > The compiler should see that "IF (i >=3D 1)" THEN "i-1 >=3D 0". Quoting t= he > manual is not an adequate answer. An upgrade would be most welcomed. >=20 gfortran is mostly maintained by a diminishing number of contributors. Messages telling the few remaining contributors what they ought to do are likely to fall on deaf ears. Patches from new contributors are welcomed; otherwise, sometime in the future, perhaps a decade=20 or so, someone might care enough to try to fix this annoyance. In the=20 meantime, add -Wno-do-subscript to your options.=