From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 889A23858C3A; Fri, 3 Feb 2023 20:38:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 889A23858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675456729; bh=W2V/ahG13VC7+8m+NLorWrwnjosoLXyUDb52+CXg/0E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KMm8wd0gyxAZhucemNAoE9Xi6SGM61cvIxs6ybKXG/EI1CdPZnM5ul4JAuiUy1OX6 ct8mEjph0MysPrQSx+tt05b3fZIZXWu+tANIgo/P6e/3N2UDvUHk2uT1AM/CWvqqX1 IAzZtNR/jeUXSJLSbt1ciak9miKAQuFvcPS75gp4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/108451] [13 Regression] ICE in check_complete_insertion, at hash-table.h:578 Date: Fri, 03 Feb 2023 20:38:49 +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: accepts-invalid, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 13.0 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=3D108451 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:76f7f0eddcb7c418d1ec3dea3e2341ca99097301 commit r13-5697-g76f7f0eddcb7c418d1ec3dea3e2341ca99097301 Author: Jakub Jelinek Date: Fri Feb 3 21:37:27 2023 +0100 fortran: Fix up hash table usage in gfc_trans_use_stmts [PR108451] The first testcase in the PR (which I haven't included in the patch bec= ause it is unclear to me if it is supposed to be valid or not) ICEs since ex= tra hash table checking has been added recently. The problem is that gfc_trans_use_stmts does tree *slot =3D entry->decls->find_slot_with_hash (rent->use_n= ame, hash, INSERT); if (*slot =3D=3D NULL) and later on doesn't store anything into *slot and continues. Another = spot a few lines later correctly clears the slot if it decides not to use the slot, so the following patch does the same. 2023-02-03 Jakub Jelinek PR fortran/108451 * trans-decl.cc (gfc_trans_use_stmts): Call clear_slot before doing continue.=