https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92458

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 47213
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47213&action=edit
gcc10-pr92458.patch

Ugh, this is a mess.  PCH remaps pointers and decl_constraints actually isn't
any kind of cache, but needs to map decls to the constraints for the whole FE,
all that can happen is that GC collected keys result in GC of the corresponding
constraints.
The hash_map that was used was using pointer hash, so after the remapping the
pointers are different, but nothing rehashed the hash tables.

The patch fixes it by using DECL_UID as hash value instead, that is stable
across PCH.

Reply via email to