From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C65413858CDA; Thu, 30 Mar 2023 19:10:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C65413858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680203438; bh=dBr3UqKNqOg+FJPMmuBgZNxjrHzmPsc/Nee2id2LtP4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Z+/G+5D/LKXedEa1qtZ2xIwoNzk0nd6f82vTJWDqCKXHofyt6EMj3G0LVUbXpdX9W 52lkf1WMEnAK5UWtxDZdkZl+zZLzwPMJBIbbaPBNShaIYgLDGykw1CUi2kA937/mC2 FFx1WIIk+vTD76PCcQE9BVkKqCbz/SM2q1VS/Yaw= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84779] [10/11/12/13 Regression] Compiling gfortran.fortran-torture/execute/entry_4.f90 with -O1 or -Os and -fdefault-integer-8 gives an ICE Date: Thu, 30 Mar 2023 19:10:37 +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: 8.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84779 anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC|anlauf at gmx dot de |anlauf at gcc dot g= nu.org --- Comment #13 from anlauf at gcc dot gnu.org --- I've come back to this PR again and spent a while trying to further narrow things down and to find the gcc options that make the code compile or fail. Minimal reproducer: complex function f2 (a) implicit none integer a logical e2 entry e2 (a) if (a > 0) then e2 =3D .true. else f2 =3D 45 endif end Basic command line: "gfortran -fdefault-integer-8", plus: these all lead to an ICE: ! -O1 ! -O1 -fno-tree-pre ! -O2 -fno-tree-pre but no ICE with: ! -O2 ! -O1 -ftree-pre ! -O2 -ftree-pre ! -O1 -fno-tree-sra ! -O2 -fno-tree-sra ! -O1 -fno-tree-sra -fno-tree-pre ! -O2 -fno-tree-sra -fno-tree-pre So is this now a frontend bug - what could it be? - or a middle-end issue?=