This is a second attempt at fixing this bug. The previous attempt was
on the good path, but a thinko got in the way, oops. We are not adding
the new binary of that bug report (which got re-opened) to the test
suite because it's too big and it takes too much time and memory to
abidw to analyze it.
* src/abg-ir.cc (type_base::get_canonical_type_for): Really
compare the size of the type to be canonicalized against the size
of the *current* potential canonical type of the same name.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
// Let's add one more size constraint to rule
// out programs that break the One Definition
// Rule too easily.
- && v[0]->get_size_in_bits() == t->get_size_in_bits())
+ && (*it)->get_size_in_bits() == t->get_size_in_bits())
{
// Both types come from the same ABI corpus and
// have the same name; the One Definition Rule