From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E2EA03857BBD; Fri, 15 Jul 2022 18:59:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2EA03857BBD From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/104313] [10/11/12/13 Regression] ICE verify_gimple failed with -ff2c since r10-2279-ge0af8f52b10385d8 Date: Fri, 15 Jul 2022 18:59:35 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 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: Fri, 15 Jul 2022 18:59:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104313 --- Comment #8 from kargl at gcc dot gnu.org --- (In reply to anlauf from comment #7) > (In reply to Steve Kargl from comment #6) > > The patch in comment 2 fixes the issue. It was submitted > > 13 hours after the initial report. >=20 > Steve, if you like, I can commit your patch under your name. > It's pretty obvious. >=20 > How about the following testcase? >=20 > ! { dg-do compile } > ! { dg-additional-options "-ff2c -fdump-tree-original" } > ! > ! PR fortran/104313 - ICE verify_gimple failed with -ff2c > ! Contributed by G.Steinmetz >=20 > function f(a) > return > end >=20 > ! { dg-final { scan-tree-dump-times "return" 1 "original" } } LGTM. Whether my name appears or not isn't important to me. A working compiler i= s.=20 The patch itself seems obvious, and I suspect you would have eventually fou= nd it. So commit as yo see fit.=