From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C9424388A009; Thu, 2 Apr 2020 13:00:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C9424388A009 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585832440; bh=3gTsd2nWVjGu+sRU7uWqo7dcaG50O6owYTSVLreRijE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sEQ/DdACSGrDaw/qjzCYJaWpH2jEEq2Y+9cHq6EljjwNSdWmoHGkm9kgez++uWCNu fyHYBdPO4al4clzmeXj6prTD0EyaUr/nj1a5uTenj1b09CbQIN5DQz1ufBZnP2z6mL Z/GLLZKvhfTAwnnSo9RxOlLZ15g8/GqvNLuc+AvU= From: "nathan 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 13:00: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 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: cc 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 13:00:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94454 Nathan Sidwell changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nathan at gcc dot gnu.org --- Comment #4 from Nathan Sidwell --- Oh, it is from the template specialization hash table. I suggest making th= at 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=