From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C225D39450E5; Fri, 27 Mar 2020 09:51:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C225D39450E5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585302711; bh=Q7uWe94cD+WMEEtMtL6aRgGGU2uXZXKFsD8fECAyQro=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gEt2xNVVH7yht9Xg9V7lUVg6hgqY3Zj01a/VBKDNbIl61WTadoDXa/2Ba0d3P2+IZ DdIux2wOUcSG7ix2invlzinm0OGk+LAF4CgOAB76eRtrr6crWxBfD3EOctc+mTHLZT pmgaNnpmGk/RhYmAzjsxI5IDus/zp1XJ2y9LhO1k= From: "markeggleston at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/94030] [8/9/10 Regression] ICE equivalence of an integer and an element of an array of size n Date: Fri, 27 Mar 2020 09:51:51 +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.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: markeggleston 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: 8.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 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, 27 Mar 2020 09:51:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94030 markeggleston at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markeggleston at gcc dot g= nu.org --- Comment #3 from markeggleston at gcc dot gnu.org --- A patch from Steve Kargl was sent to the fortran mailing list, (see https://gcc.gnu.org/pipermail/fortran/2020-March/054130.html) without refer= ence to any PR. It appeared to be related to this PR. I have verified the patch and also checked it with the test case in the original report. The result is: 5 | equivalence (i, arr(1)) | 1 Error: Array 'arr' at (1) with non-constant bounds cannot be an EQUIVALENCE object The above is much better than an ICE. Thanks Steve. I will add test cases to the patch and will send it upstream for approval f= or master and backports to gcc-8 and gcc-9.=