https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94454
Nathan Sidwell <nathan at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nathan at gcc dot gnu.org --- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> --- 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 = 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