From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6A02A385741C; Sat, 26 Jun 2021 01:07:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A02A385741C From: "marcel.jacobse at ewetel dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/101135] Use of absent assumed-shape array argument as an actual argument for an optional dummy argument mistakenly flagged as error by UndefinedBehaviourSanitizer Date: Sat, 26 Jun 2021 01:07:30 +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: 11.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marcel.jacobse at ewetel dot net X-Bugzilla-Status: UNCONFIRMED 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: 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: Sat, 26 Jun 2021 01:07:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101135 --- Comment #1 from Marcel Jacobse --- With some bisecting I managed to track this down to commit https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dcommit;h=3D243c288370fe51ba55c3a9e= e61eb2a1a62cb1279 being the first "faulty" one. >>From what I can tell the commit aimed to catch null pointer dereferences in more cases. Not sure if this means that the commit made the check to broad = so that it generates false positives for this Fortran case. Or if gfortran per= haps generates intermediate representation that is not quite valid and is correc= tly flagged by UBSan.=