From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 26221385AC2E; Fri, 28 Jan 2022 15:42:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 26221385AC2E From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/104228] [9/10/11/12 Regression] ICE in df_install_ref, at df-scan.cc:2294 since r8-3589-g707905d0773e5a8e Date: Fri, 28 Jan 2022 15:42:08 +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-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: 9.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, 28 Jan 2022 15:42:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104228 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- Seems to be a FE bug. Already in *.gimple bug with -fdump-tree-all-uid one can see: __attribute__((fn spec (". "))) void p () { static voidD.27 sD.4214 (void); struct array01_character(kind=3D1) yD.4238; static integer(kind=3D8)D.9 .yD.4216; static struct array01_character(kind=3D1) xD.4249 =3D {.dataD.4244=3D0B}; bitsizetype D.4278; sizetype D.4279; try { ... __attribute__((fn spec (". "))) void s () { bitsizetype D.4285; sizetype .y.10D.4286; integer(kind=3D8)D.9 iftmp.14D.4287; { static integer(kind=3D8)D.9 .yD.4216; static struct array01_character(kind=3D1) xD.4249 =3D {.dataD.4244=3D0B= }; bitsizetype D.4278; sizetype D.4279; That means that BLOCK_VARS of a BLOCK inside of p function contain s var with DECL_UID 4214, its DECL_CHAIN is y with DECL_UID 4238 and its DECL_CHAIN is .y with DECL_UID 4216. But the same .y var with DECL_UID 4216 is also in BLOCK_VARS of another BLO= CK inside of s. Vars in BLOCK_VARS are chained through DECL_CHAIN, aren't in = some vec or TREE_VEC etc., so can't be part of multiple chains.=