From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D4AC3388A03B; Thu, 2 Apr 2020 16:37:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4AC3388A03B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585845455; bh=vf96L18WySr4tGdnZYM51HY2pZ6CpRV94ojRm44bKfk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=INBJSMrP/74VhcOVxT85tIG7n8up4gmL2i0Ht+ez4xFHiyPT9oH2ZEuqxeYEL0/wI FhMQwwrdIaeeFrffS8V7GJ+8YqBRLIyuduEZWoMbXmes78v1m+WyBl7C9eiUDH4nk2 7JdoTawlGAxaZMmnhGR2x/mroh8N0xXQ2RUAwn7w= From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94454] ICE 'canonical types differ for identical types' Date: Thu, 02 Apr 2020 16:37:35 +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: iains 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: 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:37:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94454 --- 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: >=20 > 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); > } >=20 > sorry for not realizing this earlier [not wishing to disturb the c-reduce sessions already started] On Darwin17 @r10-7488, which was always succeeding I bootstrapped with this patch, and then built a --disable-bootstrap with t= he "spec_hasher::hash always returns 0" applied too. Neither made any difference, the entire ranges-v3 suite built without issue. Maybe that's informative in its own right. Will hopefully have some kind of reduced test-case for x86-64-linux tomorro= w.=