From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 85E86388B6AA; Tue, 2 May 2023 20:14:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85E86388B6AA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683058465; bh=sH/jP62MdDzp1ydtlj2tymzU3kgy5T57THce7apFieI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uoPX2DjSrQoXgBfljdkCvuAVxCVDWGQiL//rcgCgKmfSW80uaZyFL1Sp+yUdm0Nkv 91gV9QdqdFTZlOc2O/W8vmbLiU8rl/VTd1XlwN9SqpFm0IpxkS8ni8QknqWdyPDq5M lbXc9FqvWUTspyrgchXXY2Zx/2hhWO3sHI7D4Z/E= 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: Tue, 02 May 2023 20:14:24 +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-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED 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 #8 from CVS Commits --- The releases/gcc-11 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:658156714de37163d570ace3a868f23900b0efe9 commit r11-10708-g658156714de37163d570ace3a868f23900b0efe9 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.c (gfc_trans_use_stmts): Call clear_slot before doing continue. (cherry picked from commit 76f7f0eddcb7c418d1ec3dea3e2341ca99097301)=