Subject: bug#26639: 26.0.50; gethash can't find value from equal key

From: Andreas Schwab <[email-masked]>
Date: Mon, 24 Apr 2017 19:05:12 +0200

On Apr 24 2017, Damien Cassou <[email-masked]> wrote:

> In emacs built from master today (53f8f4bf), evaluate this in the
> scratch buffer of `emacs -Q`:
>
> (cl-defstruct foo slot1 slot2)
> (setq foo1 (make-foo :slot1 "abc" :slot2 "cba"))
> (setq foo2 (make-foo :slot1 "abc" :slot2 "cba"))
>
> (equal foo1 foo2) ;; should be t

Looks like sxhash doesn't correctly handle records:

(= (sxhash foo1) (sxhash foo2)) => nil

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."