From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 40DF53857351; Thu, 29 Sep 2022 21:16:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 40DF53857351 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664486194; bh=hpBRcRMiBKtQEiLRY/WtflBMU4BkUqren4BHw/OU1QM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KppKbLS00PRO1f5VuS8MYgWqS60gUDYGaDNHI/Gu3UY8uSoqgp5bxiiXZU37kdpXH 7/xh6itrH4ruBb6h0mu14TnxoISZb4vgVy3soznB5xG4f4CaF4NPW6Kptijm1RWu2C 8KGezLoLss6U7wBjAv58ZyVv7cZ+9PvRx1l0z2y4= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107075] ICE in get, at cgraph.h:461 Date: Thu, 29 Sep 2022 21:16:33 +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: 13.0 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107075 --- Comment #4 from anlauf at gcc dot gnu.org --- (In reply to Mikael Morin from comment #3) > (In reply to Richard Biener from comment #2) > >=20 > > But maybe 'z' shouldn't be of static storage duration ... >=20 > No, I think it shouldn't. A should be static, and Z should not. Well, I think the declaration integer, pointer :: z =3D> a(2) makes pointer z IMPLICIT_SAVE. At least I couldn't find anything in the standard that makes an exception for declarations in a BLOCK construct. This is confirmed by Intel and Cray and by replacing 'program p' by 'subroutine p'. And in line with gfortran... Error: Pointer initialization target at (1) must have the SAVE attribute=