From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 839D03858D37; Thu, 29 Sep 2022 08:17:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 839D03858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664439453; bh=5H2yuuUzvdhnjNf4OGBx9pwlg4BnoN1Nk6+P73Z5+5M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ozUOfJVLcrqpTn+lnISiIrYar23fvanUvdQreCLXehfuY6bp3PIq05Pwi8HCLGntt zOYZyj2CfAaT3ukjDvZdP1qUHM5h+IWaIoM0YVr+jO+JYaZnqGwyfL0rZtMBHPyLO1 qPcQyRE+Mzm1WeZIRAE2KZE4oiE4vSW3boaeOVeM= From: "rguenth 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 08:17: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: rguenth 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 #2 from Richard Biener --- There's a static variable ('z') with an initializer that refers to an autom= atic variable ('a'). The appropriate way to runtime initialize is not with DECL_INITIAL but instead with an INIT_EXPR or MODIFY_EXPR. But maybe 'z' shouldn't be of static storage duration ...=