Fix relational::compare_same_type.
authorOleg Finkelshteyn <olegfink@gmail.com>
Tue, 21 Dec 2021 09:02:29 +0000 (10:02 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Tue, 21 Dec 2021 09:02:29 +0000 (10:02 +0100)
commitcb885a6f05aa4f93518c9ab7ee161c0a1b9f39d8
treec008b76c81522b98009051ed3ecfd8e8857b5c83
parent98424bb9699756d1eaf77f8a17b936f640c4083f
Fix relational::compare_same_type.

A hash collision was needed to elicit this bug because basic::compare
returns early without calling compare_same_type if hashes differ.

Reported by Feng Feng <f.feng@outlook.com>.
check/exam_relational.cpp
ginac/relational.cpp