From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7027E388A039; Thu, 2 Apr 2020 16:50:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7027E388A039 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585846240; bh=89iXaw1rjumy5hL1R8k9VLPJg8SbevodYAKAu6tYxVc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jZ2pQQ2vX2N6mKRog9W25ak0AJAKBWDU74YWb8Ml1h7zQ4tO5gjSa5XpefvqG1zi+ L28HV9GhxjKZ4lXbVj2UtPq7VuPs1A6sDcaWDWuocjSZZrmGU72NxmS9FltL6oEK5I TtD33zh2tZUZsz996ud1lkNFNmSWq60rd1UXG8kg= From: "nathan at acm dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94454] ICE 'canonical types differ for identical types' Date: Thu, 02 Apr 2020 16:50: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: nathan at acm dot 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: 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: Thu, 02 Apr 2020 16:50:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94454 --- Comment #6 from Nathan Sidwell --- On 4/2/20 12:37 PM, iains at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94454 >=20 > --- Comment #5 from Iain Sandoe --- > (In reply to Nathan Sidwell from comment #4) >> Oh, it is from the template specialization hash table. I suggest making >> that very poor to increase collisions: >> >> pt.c: >> static hashval_t >> hash_tmpl_and_args (tree tmpl, tree args) >> { >> hashval_t val =3D iterative_hash_object (DECL_UID (tmpl), 0); >> return val; // INSERT THIS LINE >> return iterative_hash_template_arg (args, val); >> } >> >> sorry for not realizing this earlier >=20 > [not wishing to disturb the c-reduce sessions already started] >=20 > On Darwin17 @r10-7488, which was always succeeding >=20 > I bootstrapped with this patch, and then built a --disable-bootstrap with= the > "spec_hasher::hash always returns 0" applied too. Ok, BTW spec_hasher::hash forwards to hash_tmpl_and_args. They must=20 agree, so ... > Neither made any difference, the entire ranges-v3 suite built without iss= ue. surprises me. >=20 > Maybe that's informative in its own right. >=20 > Will hopefully have some kind of reduced test-case for x86-64-linux tomor= row. >=