[Bug,default/26135] Wrong linkage name causes anonymous classes miscomparison
Commit Message
https://sourceware.org/bugzilla/show_bug.cgi?id=26135
--- Comment #5 from Giuliano Procida <gprocida+abigail at google dot com> ---
This is the patch I was working on that caused me to take a closer look.
This was an attempt to reduce the gap in behaviour between early and late type
canonicalisation by the DWARF reader.
@@ -3496,7 +3496,8 @@ public:
int tag = dwarf_tag(const_cast<Dwarf_Die*>(die));
if ((tag == DW_TAG_structure_type
|| tag == DW_TAG_class_type
- || tag == DW_TAG_union_type)
+ || tag == DW_TAG_union_type
+ || tag == DW_TAG_enumeration_type)
&& die_is_anonymous(die))
{
location l = die_location(*this, die);