From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1B671394849F; Sat, 14 Mar 2020 16:57:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B671394849F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584205061; bh=diiwsVmnC2/PCt5WHzY3CHXiNOLUTfaZixBSZaQlbyo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AFlMNxPes9MUjsLuXJjJOK3/hzCRgjtR7CjhlfBCVfX4wUskk7h0oTqakoM1LVvo4 XPXu8dz5JkvDxYFiy1nXr811WOSGPBn+B8k1kkVHoTOt+BWXNuLbOrBFmHA3uk1hkV LNa0SJ0Ldyvg70thIffXwCttZ1CEY9QXCdt+B40Y= From: "wilson at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94044] [10 Regression] internal compiler error: in comptypes, at cp/typeck.c:1490 on riscv64-unknown-linux-gnu and arm-eabi Date: Sat, 14 Mar 2020 16:57:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: wilson at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.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 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: Sat, 14 Mar 2020 16:57:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94044 --- Comment #9 from Jim Wilson --- (In reply to Jakub Jelinek from comment #8) > So perhaps to ease reproduction, tweak the hash function in this case to > always return 0? Yes, that works. I just didn't have a chance to look at the hash function = last night. With the hash function hacked I can reproduce for any target and any -std=3Dc++X value. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 789ccdb..4337928 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -1733,7 +1733,8 @@ hash_tmpl_and_args (tree tmpl, tree args) hashval_t spec_hasher::hash (spec_entry *e) { - return hash_tmpl_and_args (e->tmpl, e->args); + return 0; + // return hash_tmpl_and_args (e->tmpl, e->args); } /* Recursively calculate a hash value for a template argument ARG, for use=